PanelBody.d.ts 734 B

1234567891011121314151617
  1. import * as React from 'react';
  2. import type { DisabledDate } from '../interface';
  3. export interface PanelBodyProps<DateType = any> {
  4. rowNum: number;
  5. colNum: number;
  6. baseDate: DateType;
  7. titleFormat?: string;
  8. getCellDate: (date: DateType, offset: number) => DateType;
  9. getCellText: (date: DateType) => React.ReactNode;
  10. getCellClassName: (date: DateType) => Record<string, any>;
  11. disabledDate?: DisabledDate<DateType>;
  12. headerCells?: React.ReactNode[];
  13. prefixColumn?: (date: DateType) => React.ReactNode;
  14. rowClassName?: (date: DateType) => string;
  15. cellSelection?: boolean;
  16. }
  17. export default function PanelBody<DateType extends object = any>(props: PanelBodyProps<DateType>): React.JSX.Element;