funda-ui
Version:
React components using pure Bootstrap 5+ which does not contain any external style and script libraries.
62 lines (61 loc) • 2.35 kB
TypeScript
import React from 'react';
export interface EventsValueConfig {
id: string | number;
date: string;
time: string;
data: string;
eventStyles?: React.CSSProperties;
callback?: () => void;
}
export interface TimelineCellListConfig {
date: string;
list: EventsValueConfig[];
}
export declare type EventCalendarProps = {
contentRef?: React.ForwardedRef<any>;
calendarWrapperClassName?: string;
customTodayDate?: string;
eventsValue?: any[];
langWeek?: string[];
langWeekFull?: string[];
langMonths?: string[];
langMonthsFull?: string[];
langToday?: string;
iconRemove?: React.ReactNode | string;
iconAdd?: React.ReactNode | string;
cellCloseBtnClassName?: string;
cellCloseBtnLabel?: string | React.ReactNode;
cellAddBtnClassName?: string;
cellAddBtnLabel?: string | React.ReactNode;
onChangeDate?: (e: any, currentData: any) => void;
onChangeMonth?: (currentData: any) => void;
onChangeYear?: (currentData: any) => void;
onChangeToday?: (currentData: any) => void;
onListRenderComplete?: () => void;
modalMaskOpacity?: string;
modalMaxWidth?: number | string;
modalMinHeight?: number | string;
modalHeading?: React.ReactNode;
modalContent?: React.ReactNode;
modalDeleteContent?: React.ReactNode;
modalCloseBtnClassName?: string;
modalCloseBtnLabel?: string | React.ReactNode;
modalSubmitBtnClassName?: string;
modalSubmitBtnLabel?: string | React.ReactNode;
modalSubmitDeleteBtnClassName?: string;
modalSubmitDeleteBtnLabel?: string | React.ReactNode;
onModalEditOpen?: (currentData: any, openwin: any, type: 'normal' | 'new') => void;
onModalEditClose?: (currentData: any) => void;
onModalDeleteOpen?: (currentData: any, openwin: any) => void;
onModalDeleteClose?: (currentData: any) => void;
onModalEditEvent?: (currentData: any, closewin: any) => void;
onModalDeleteEvent?: (currentData: any, closewin: any) => void;
onCellMouseEnter?: (el: any) => void;
onCellMouseLeave?: (el: any) => void;
onCellClick?: (el: any) => void;
onCellDoubleClick?: (el: any) => void;
onCellMouseUp?: (el: any) => void;
onKeyPressed?: (el: any) => void;
};
declare const EventCalendar: (props: EventCalendarProps) => JSX.Element;
export default EventCalendar;