All Projects → year-calendar → rc-year-calendar

year-calendar / rc-year-calendar

Licence: Apache-2.0 License
Official React wrapper for the year-calendar widget

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to rc-year-calendar

Portal Lite
Multi-platform Personalized Portal: Web, Browser Extension. All components are web apps--users can compose their own Portal freely, and developers can contribute to the Privoce Web App library to easily incorporate their web app to our Portal.
Stars: ✭ 335 (+1140.74%)
Mutual labels:  widget, calendar
Jtapplecalendar
The Unofficial Apple iOS Swift Calendar View. Swift calendar Library. iOS calendar Control. 100% Customizable
Stars: ✭ 7,091 (+26162.96%)
Mutual labels:  calendar, year-calendar
Bootstrap Year Calendar
A fully customizable year calendar widget, for boostrap !
Stars: ✭ 282 (+944.44%)
Mutual labels:  widget, calendar
Table calendar
Highly customizable, feature-packed Flutter Calendar with gestures, animations and multiple formats
Stars: ✭ 897 (+3222.22%)
Mutual labels:  widget, calendar
Widget
A set of widgets based on jQuery&&javascript. 一套基于jquery或javascript的插件库 :轮播、标签页、滚动条、下拉框、对话框、搜索提示、城市选择(城市三级联动)、日历等
Stars: ✭ 1,579 (+5748.15%)
Mutual labels:  widget, calendar
js-year-calendar
A fully customizable year calendar widget
Stars: ✭ 164 (+507.41%)
Mutual labels:  widget, year-calendar
Flutterweekview
Displays a highly customizable week view (or day view) which is able to display events, to be scrolled, to be zoomed-in & out and a lot more !
Stars: ✭ 130 (+381.48%)
Mutual labels:  widget, calendar
DailyImageWidget
Android 桌面小部件(widget)日签 Or 日历,可作为桌面日历。Just For Fun! 🎮
Stars: ✭ 30 (+11.11%)
Mutual labels:  widget, calendar
WeekToDoWeb
WeekToDo is a free minimalist weekly planner app focused on privacy. Schedule your tasks and projects with to do lists and a calendar. Available for Windows, Mac, Linux or online.
Stars: ✭ 48 (+77.78%)
Mutual labels:  calendar
yuanful-ui
(微信小程序插件) yuanful-ui是一套可添加到微信小程序内直接使用的免费功能插件,无需重复开发,为用户提供更丰富的服务。
Stars: ✭ 30 (+11.11%)
Mutual labels:  calendar
wepy-com-calendar
一个基于wepy的日历组件,内置多套皮肤,可启用打卡功能
Stars: ✭ 33 (+22.22%)
Mutual labels:  calendar
react-native-infinite-calendar
WIP: React native port of react-infinite-calendar
Stars: ✭ 43 (+59.26%)
Mutual labels:  calendar
calendar-view-plugin
Jenkins Calendar View Plugin: Shows past and future builds in a calendar view
Stars: ✭ 17 (-37.04%)
Mutual labels:  calendar
lifecycle
Lifecycle support for Flutter widgets.
Stars: ✭ 30 (+11.11%)
Mutual labels:  widget
KosherCocoa
My Objective-C port of KosherJava. KosherCocoa enables you to perform sunrise-based and sunset-based calculations for Jewish prayer and calendar.
Stars: ✭ 49 (+81.48%)
Mutual labels:  calendar
yii2-time-down-counter
Widget for yii2, to start count down timer with a lot of options, This widget build dependence of timeDownCounter JS library
Stars: ✭ 15 (-44.44%)
Mutual labels:  widget
yii-masked-input
Yii Framework Masked input widget Extension
Stars: ✭ 38 (+40.74%)
Mutual labels:  widget
laravel-fullcalendar-scheduler
Laravel Fullcalendar scheduler component
Stars: ✭ 21 (-22.22%)
Mutual labels:  calendar
OmniList
开源的时间管理App,基于Material Design设计
Stars: ✭ 61 (+125.93%)
Mutual labels:  calendar
vue-smart-widget
🗃️Smart widget is a flexible and extensible content container component for Vue2.x / Vue3.x in Next branch.
Stars: ✭ 110 (+307.41%)
Mutual labels:  widget

rc-year-calendar

Official React.js wrapper for the year-calendar widget. https://year-calendar.github.io/

CircleCI NPM

This library is also available for:

Pure javascript Vue.js

Installation

You can get the widget using the following methods:

  • From the GitHub repository
  • From the Node package manager, using the following command: npm install rc-year-calendar
  • From Yarn, using the following command: yarn add rc-year-calendar
  • From the CDN, using the following script: <script src="https://unpkg.com/rc-year-calendar@latest/dist/rc-year-calendar.umd.min.js"></script>

Usage

You can create a calendar using the following javascript code :

// Import (only if not using the CDN installation option)
import Calendar from 'rc-year-calendar';

// Render
render() {
    return (<Calendar />);
}

Using options

You can specify props to customize the calendar:

render() {
    return (
        <Calendar style="background" minDate={new Date()} />
    );
}

The props are the following

Option name Description Type Default value
allowOverlap Specifies whether the user can select a range which overlapping an other element present in the datasource. boolean true
alwaysHalfDay Specifies whether the beginning and the end of each range should be displayed as half selected day. boolean false
contextMenuItems Specifies the items of the default context menu. array []
customDayRenderer Specify a custom renderer for data source. Works only with the style set to "custom". This function is called duringender for each day containing at least one event. Render function null
customDataSourceRenderer Specify a custom renderer for days. This function is called during render for each day. Render function null
dataSource The elements that must be displayed on the calendar. array or function []
disabledDays The days that must be displayed as disabled. array []
disabledWeekDays The days of the week that must be displayed as disabled (0 for Sunday, 1 for Monday, etc.). array []
displayDisabledDataSource Specifies whether the data source must be rendered on disabled days. boolean false
displayHeader Specifies whether the calendar header is displayed. boolean true
displayWeekNumber Specifies whether the weeks number are displayed. boolean false
enableContextMenu Specifies whether the default context menu must be displayed when right clicking on a day. boolean false
enableRangeSelection Specifies whether the range selection is enabled. boolean false
hiddenWeekDays The days of the week that must not be displayed (0 for Sunday, 1 for Monday, etc.). array []
language The language/culture used for calendar rendering. String en
loadingTemplate A custom loading template String null
maxDate The date until which days are enabled. Date null
minDate The date from which days are enabled. Date null
roundRangeLimits Specifies whether the beginning and the end of each range should be displayed as rounded cells. boolean false
style Specifies the style used for displaying datasource ("background", "border" or "custom"). string border
weekStart The starting day of the week. This option overrides the parameter define in the language file. number 0
year The year displayed by the calendar. number Current year
defaultYear The year on which the calendar should be opened. number Current year
Event name Description Parameter
onDayClick Function fired when a day is clicked. { date, events }
onDayContextMenu Function fired when a day is right clicked. { date, events }
onDayEnter Function fired when the mouse enter on a day. { date, events }
onDayLeave Function fired when the mouse leaves a day. { date, events }
onRangeSelected Function fired when a date range is selected. { startDate, endDate }
onRenderEnd Function fired when the calendar rendering is ended. { currentYear }
onYearChanged Function fired when the visible year of the calendar is changed. { currentYear }

Language

If you want to use the calendar in a different language, you should import the locale file corresponding to the language you want to use, and then set the language prop of the calendar:

import Calendar from 'rc-year-calendar';
import 'rc-year-calendar/locales/rc-year-calendar.fr';

OR

<script src="https://unpkg.com/rc-year-calendar@latest/dist/rc-year-calendar.umd.min.js"></script>
<script src="https://unpkg.com/rc-year-calendar@latest/locales/rc-year-calendar.fr.js"></script>

Then

render() {
    return (
        <Calendar language="fr" />
    );
}

The list of available languages is available here

What next

Check the examples page to discover all the functionalities.

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].