@isma91/react-scheduler 4.0.2 → 4.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/index.js +982 -974
- package/package.json +1 -1
- package/store/default.d.ts +2 -0
- package/store/types.d.ts +7 -0
package/README.md
CHANGED
|
@@ -69,6 +69,7 @@ All props are _optional_
|
|
|
69
69
|
| deletable | boolean. Whether the event item will show the delete button, this is applied to all events, and can be overridden in each event property, see `ProcessedEvent` type.
|
|
70
70
|
| draggable | boolean. Whether activate drag&drop for the events, this is applied to all events, and can be overridden in each event property, see `ProcessedEvent` type.
|
|
71
71
|
| getRemoteEvents | Function(RemoteQuery). Return promise of array of events. Can be used as a callback to fetch events by parent component or fetch.<br><pre>type RemoteQuery = { <br> start: Date;<br> end: Date;<br> view: "day" \| "week" \| "month";<br>}</pre>
|
|
72
|
+
| refetch | Function accessible via ref to manually trigger a reload of remote events. Only works when `getRemoteEvents` is provided. <br>_Usage_: `schedulerRef.current?.scheduler?.refetch()` |
|
|
72
73
|
| fields | Array of extra fields with configurations. <br> Example: <pre> { <br> name: "description", <br> type: "input" , <br> config: { label: "Description", required: true, min: 3, email: true, variant: "outlined", ....<br>}</pre>
|
|
73
74
|
| loading | boolean. Loading state of the calendar table
|
|
74
75
|
| loadingComponent | Custom component to override the default `CircularProgress`
|