Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
When data is date or divided by date, such as schedule, class schedule, event calendar, etc.
defaultDate
is set, the view of the corresponding month is displayed;When there are no tasks, the calendar looks like this:
Setting resizable
to true allows both ends of the stretch task to adjust the timing:
The task style is defined by listStyle
, and the calendar will adapt to the height according to the listStyle
height property.
When the start time is greater than the end time, the task is abnormal, and an alarm is displayed. The task is displayed in the interface until the start time is unknown, and the length is 1 day.
Name | Type | Description | Default |
---|---|---|---|
defaultDate | Date | the default time, the first time the calendar is opened is the current month | |
tasks | ITask[] | task list, the data structure is: ITask { id: Id; title: string; startDate: Date; endDate: Date; startDisabled?: boolean, endDisabled?: boolean } | |
update | (id: Id, startDate: Date, endDate: Date) => void | update task function | |
lang | en / zh | international configuration | |
dnd | any[] | Drag and drop component (beta version) | |
listStyle | CSSProperties | task style | |
startListStyle | CSSProperties | mark task start time location style | |
warnText | ReactElement<any, string / JSXElementConstructor<any>> | alarm information | |
rowMixCount | number | the minimum number of display rows in a calendar row | |
disabled | boolean | disable | |
resizable | boolean | support stretching, allowing to adjust the task time by pulling both ends of the task | |
moreText | string | - | |
moveTaskId | string | - | |
monthPicker | (showValue: string) => Element | - |