mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
react-big-calendar: add missing optional property onShowMore (#35719)
* react-big-calendar: add missing optional prop `onShowMore`. Use prop in full api example. * react-big-calendar: #35719, missing whitespaces.
This commit is contained in:
committed by
Ryan Cavanaugh
parent
01f1505046
commit
18c8f651da
1
types/react-big-calendar/index.d.ts
vendored
1
types/react-big-calendar/index.d.ts
vendored
@@ -298,6 +298,7 @@ export interface BigCalendarProps<TEvent extends Event = Event, TResource extend
|
||||
defaultDate?: Date;
|
||||
className?: string;
|
||||
elementProps?: React.HTMLAttributes<HTMLElement>;
|
||||
onShowMore?: (events: TEvent[], date: Date) => void;
|
||||
}
|
||||
|
||||
export interface ViewStatic {
|
||||
|
||||
@@ -135,6 +135,9 @@ class CalendarResource {
|
||||
toolbar={true}
|
||||
popup={true}
|
||||
popupOffset={20}
|
||||
onShowMore={(events, date) => {
|
||||
console.log('onShowMore fired, events: %O, date: %O', events, date);
|
||||
}}
|
||||
selectable={true}
|
||||
step={20}
|
||||
rtl={true}
|
||||
|
||||
Reference in New Issue
Block a user