TimeColumn.d.ts 617 B

1234567891011121314151617
  1. import * as React from 'react';
  2. export type Unit<ValueType = number | string> = {
  3. label: React.ReactText;
  4. value: ValueType;
  5. disabled?: boolean;
  6. };
  7. export interface TimeUnitColumnProps {
  8. units: Unit[];
  9. value: number | string;
  10. optionalValue?: number | string;
  11. type: 'hour' | 'minute' | 'second' | 'millisecond' | 'meridiem';
  12. onChange: (value: number | string) => void;
  13. onHover: (value: number | string) => void;
  14. onDblClick?: VoidFunction;
  15. changeOnScroll?: boolean;
  16. }
  17. export default function TimeColumn<DateType extends object>(props: TimeUnitColumnProps): React.JSX.Element;