@progress/kendo-react-dateinputs
Version:
KendoReact Date Inputs package
89 lines (88 loc) • 2.88 kB
TypeScript
/// <reference types="react" />
import { DateInputFormatPlaceholder } from '../../dateinput/models/format-placeholder';
/**
* @hidden
*/
export interface DateTimePickerSettings {
/**
* Sets the `className` of the DateTimePicker.
*/
className?: string;
/**
* Sets if the calendar popup is opened upon initial render.
* For more info about default values in uncontrolled state, please refer to the [Uncontrolled Components](https://reactjs.org/docs/uncontrolled-components.html) article.
*/
defaultShow?: boolean;
/**
* Determines whether the DateTimePicker is disabled
* ([see example]({% slug disabled_datetimepicker %})).
*/
disabled?: boolean;
/**
* Specifies the initial focusedDate of the Calendar inside the DateTimePicker
* ([see example]({% slug dates_datetimepicker %})).
*/
focusedDate?: Date;
/**
* Specifies the date format that is used to display the input value
* ([see example]({% slug formats_datetimepicker %})).
*/
format?: string;
/**
* Defines the descriptions of the format sections in the input field
* ([more information and examples]({% slug placeholders_datetimepicker %})).
*/
formatPlaceholder?: DateInputFormatPlaceholder;
/**
* Specifies the `id` of the DateTimePicker.
*/
id?: string;
/**
* Specifies the greatest valid date
* ([see example]({% slug dateranges_datetimepicker %})).
*/
max?: Date;
/**
* Specifies the smallest valid date
* ([see example]({% slug dateranges_datetimepicker %})).
*/
min?: Date;
/**
* Specifies the `name` property of the `input` DOM element.
*/
name?: string;
/**
* Fires each time any of the DateTimePicker elements gets blurred.
*/
onBlur?: (event: React.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
/**
* Fires each time the user focuses any of the DateTimePicker elements.
*/
onFocus?: (event: React.FocusEvent<HTMLSpanElement | HTMLDivElement>) => void;
/**
* Specifies if the popup will be displayed
* ([see example]({% slug controlled_datetimepicker %}#toc-controlling-the-popup-state)).
*/
show?: boolean;
/**
* Sets the `tabIndex` property of the DateTimePicker.
*/
tabIndex?: number;
/**
* Sets the title of the `input` element of the DateTimePicker.
*/
title?: string;
/**
* Determines whether to display a week number column of the Calendar inside the DateTimePicker
* ([see example]({% slug weeksnumbers_calendar %})).
*/
weekNumber?: boolean;
/**
* Specifies the width of the DateTimePicker.
*/
width?: number | string;
/**
* Determines whether to display the **Cancel** button in the popup.
*/
cancelButton?: boolean;
}