All Projects → jessemao → react-calendar-mobile

jessemao / react-calendar-mobile

Licence: MIT license
React Calendar Mobile is a component very easy to use with scroll event enabled.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to react-calendar-mobile

EventCalender
This event setter library. You can set any event in any date and also you can modify it
Stars: ✭ 23 (+0%)
Mutual labels:  calendar-component, calendar-events
kalend
React calendar component with support for multiple views and events
Stars: ✭ 135 (+486.96%)
Mutual labels:  calendar-component, calendar-events
rosetta
A blazing fast internationalization (i18n) library for Crystal with compile-time key lookup.
Stars: ✭ 23 (+0%)
Mutual labels:  locale
vanillajs-scrollspy
ScrollSpy in pure JavaScript
Stars: ✭ 47 (+104.35%)
Mutual labels:  scrollable
handMadeCalendarAdvance
[ING]Swift版の日本の祝祭日判定コードとカレンダーサンプル(iOS Sample Study: Swift)
Stars: ✭ 62 (+169.57%)
Mutual labels:  calendar-component
crates
🌎 A tool to generate your locale files compatible with i18n.
Stars: ✭ 52 (+126.09%)
Mutual labels:  locale
VRCalendarView
Flexible calendar view
Stars: ✭ 33 (+43.48%)
Mutual labels:  calendar-component
local.js
Localization script for web sites which has the multiple languages.
Stars: ✭ 15 (-34.78%)
Mutual labels:  locale
vue-i18n
A small package for implementing translations in Vue.js
Stars: ✭ 40 (+73.91%)
Mutual labels:  locale
vue-calendar-picker
Calendar component
Stars: ✭ 47 (+104.35%)
Mutual labels:  calendar-events
vuelendar
Simple and clean calendar written in Vue.js
Stars: ✭ 76 (+230.43%)
Mutual labels:  calendar-component
praecox-datepicker
A date picker built with Svelte.Simple and flexible, supporting functions such as single selection, multiple selection, disabling, and marking.
Stars: ✭ 66 (+186.96%)
Mutual labels:  calendar-component
go-locale
Cross platform locale detection for Golang
Stars: ✭ 88 (+282.61%)
Mutual labels:  locale
vue-sweet-calendar
A simple and sweet vue.js calendar
Stars: ✭ 34 (+47.83%)
Mutual labels:  calendar-component
get-user-locale
A function that returns user's locale as an IETF language tag, based on all available sources.
Stars: ✭ 44 (+91.3%)
Mutual labels:  locale
react-calendar
A no dependencies, lightweight and feature-rich ⚡ calendar component for react.
Stars: ✭ 68 (+195.65%)
Mutual labels:  calendar-component
flutter-devicelocale
A Flutter package to read and return the set device locales
Stars: ✭ 45 (+95.65%)
Mutual labels:  locale
HorizontalTimesLayout
Layout to display time slots in horizontal 24 hour format
Stars: ✭ 31 (+34.78%)
Mutual labels:  calendar-events
Calendar.js
📅 A drag & drop event calendar (for Javascript), that is fully responsive and compatible with all modern browsers.
Stars: ✭ 29 (+26.09%)
Mutual labels:  calendar-events
Blazor.PersianDatePicker
A free JavaScript Jalali (Persian) and Gregorian (Miladi) dual datepicker library for Blazor applications
Stars: ✭ 40 (+73.91%)
Mutual labels:  calendar-component

React Calendar Mobile

React Calendar Mobile is a component very easy to use with no extra effort. It can be used in any project with great performance! Different from other calendar/date picker components, this component uses touches and scrolls to move to different months or weeks like native calendar on mobile device. It supports both monthly and weekly view.

点此阅读简体中文文档

How to install

npm install react-calendar-mobile --save

How to use

ES6

import Calendar from 'react-calendar-mobile';

CommonJS

var Calendar = require('react-calendar-mobile');

Locale / International

React Calendar Component supports locale format as Javascript Date API provides. Users can pass value to i18n, weekdayFormat, monthFormat, yearFormat to localize the calendar. More details displays in the Properties table.

Properties

Name Type Default Description
selectedDate String/Date new Date() The date selected on calendar. Default to today's date.
startDateAt String/Date new Date() The date of calendar displaying starts at. e.g., startDateAt is 2017-02-01 if the calendar displays February 2017.
startOnMonday Boolean false If false, week starts from Sunday, otherwise, from Monday.
decorate object {} It indicates if there is any event on specific day. A key/value object that maps decorates to calendar. Key format is "YYYY-MM-DD", value can be any value, e.g. {"2017-02-15": true} will add an origin dot under the date of 2017-02-15 on calendar which indicates that there is/are events on that day.
view String "month" Value will be "month"/"week". If set to "month", then a monthly calendar will be displayed, otherwise, it displays a week.
className String "" Customized class for the Calendar.
i18n String "en-US" Optional. A string with a BCP 47 language tag, or an array of such strings.
weekdayFormat String "narrow" The representation of the weekday. Possible values are "narrow", "short", "long".
monthFormat String "long" The representation of the month. Possible values are "numeric", "2-digit", "narrow", "short", "long".
yearFormat String "numeric" The representation of the year. Possible values are "numeric", "2-digit".
onSelectDate Function Callback function when a date is selected. Output of the selected value is a Date object and is passed in as the first argument of this function.
onChange Function Callback function when calendar scrolls to a different month or week. Output is a Date object and value is the start date of the month or week displaying. Passed in as the first argument of this function.

Style

Class Name Description
.react-calendar root div of calendar.
.react-calendar__header header div of calendar, where year and month display
.react-calendar__year year div of calendar.
.react-calendar__month month div of calendar.
.react-calendar__main main body div of calendar.
.react-calendar__weekdays weekdays title div of calendar.
.react-calendar__weekday each weekday title div of calendar.
.react-calendar__days days root div of calendar.
.react-calendar__day each day div of calendar. use .react-calendar__day span for date text style.
.react-calendar__day--today today's date div.
.react-calendar__day--othermonth dates of other months div.
.react-calendar__day--selected selected date div.
.react-calendar__day--decorate date with decorates on. To modify decorate's style, use .react-calendar__day--decorate:after

Getting Started

To play it yourself, you can clone this repo and run the example in your local space.

Or you can play with the picker Online here

git clone https://github.com/jessemao/react-calendar-mobile.git
cd react-calendar-mobile && cd example
npm install
npm start

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].