doj-react-adminlte
Version:
Simple and easy-to-use AdminLTE components for React
65 lines (60 loc) • 1.79 kB
TypeScript
import * as React from 'react';
export interface CalendarInputProps {
/**
* Set to false to remove the clear button to disable clearing of
* the value using the built-in clear button of the component.
*/
clearable?: boolean;
/**
* Set to false to use time picker only
*/
datePicker?: boolean;
/**
* If true, users won't be able to interact with the component
*/
disabled?: boolean;
errors?: any;
/**
* Specifies a Bootstrap 3 grid class
*/
gridClass?: string;
/**
* Specifies the icon class to be displayed within the component
*/
iconClass?: string;
/**
* Specify a callback to determine the dates that can be selected.
* The function receives (currentDate, selectedDate) and shall return
* a true or false whether the date is valid or not.
*/
isSelectableDate?: (...args: any[])=>any;
/**
* Specifies the text to use as the label
*/
label?: React.ReactNode;
/**
* Set to false to disable manual input
*/
manualInput?: boolean;
/**
* Specifies the name of the component. It is used to distinguish elements when
* a single form change handler is used
*/
name: string;
/**
* Callback fired when component value changes. Accepts a function with two parameters,
* namely field and value
*/
onChange?: (...args: any[])=>any;
/**
* Set to false to use date picker only
*/
timePicker?: boolean;
/**
* Specifies the current value of this component.
*/
value?: any;
}
export default class CalendarInput extends React.Component<CalendarInputProps, any> {
render(): JSX.Element;
}