Interface IIgrDatePickerProps

Hierarchy

Hierarchy

Properties

activeDate?: Date

Gets/Sets the date which is shown in the calendar picker and is highlighted. By default it is the current date.

change?: ((s, e) => void)

Type declaration

children?: ReactNode
className?: string
closed?: ((s, e) => void)

Type declaration

closing?: ((s, e) => void)

Type declaration

disabled?: string | boolean

The disabled state of the component

disabledDates?: IDateRangeDescriptor[]

Gets/sets disabled dates.

displayFormat?: string

Format to display the value in when not editing. Defaults to the input format if not set.

emitEvent?: any
headerOrientation?: string | DatePickerHeaderOrientation

The orientation of the calendar header.

hideHeader?: string | boolean

Determines whether the calendar hides its header.

hideOutsideDays?: string | boolean

Controls the visibility of the dates that do not belong to the current month.

id?: string
input?: ((s, e) => void)

Type declaration

inputFormat?: string

The date format to apply on the input. Defaults to the current locale Intl.DateTimeFormat

invalid?: string | boolean

Control the validity of the control.

keepOpenOnOutsideClick?: string | boolean

Whether the component dropdown should be kept open on clicking outside of it.

keepOpenOnSelect?: string | boolean

Whether the component dropdown should be kept open on selection.

label?: string

The label of the datepicker.

locale?: string

The locale settings used to display the value.

max?: Date

The maximum value required for the date picker to remain valid.

min?: Date

The minimum value required for the date picker to remain valid.

mode?: string | DatePickerMode

Determines whether the calendar is opened in a dropdown or a modal dialog

name?: string

The name attribute of the control.

nonEditable?: string | boolean

Whether to allow typing in the input.

open?: string | boolean

Sets the open state of the component.

opened?: ((s, e) => void)

Type declaration

opening?: ((s, e) => void)

Type declaration

orientation?: string | DatePickerOrientation

The orientation of the multiple months displayed in the calendar's days view.

outlined?: string | boolean

Whether the control will have outlined appearance.

placeholder?: string

The placeholder attribute of the control.

prompt?: string

The prompt symbol to use for unfilled parts of the mask.

readOnly?: string | boolean

Makes the control a readonly field.

required?: string | boolean

Makes the control a required field in a form context.

resourceStrings?: IgrCalendarResourceStrings

The resource strings of the calendar.

showWeekNumbers?: string | boolean

Whether to show the number of the week in the calendar.

specialDates?: IDateRangeDescriptor[]

Gets/sets special dates.

style?: CSSProperties
value?: Date

The value of the picker

visibleMonths?: string | number

The number of months displayed in the calendar.

weekStart?: string | WeekDays

Sets the start day of the week for the calendar.