Skip to content

@jsvision/ui / DatePickerOptions

Interface: DatePickerOptions

Defined in: ui/src/date/date-picker.ts:55

Options for a DatePicker.

Properties

density?

optional density?: CalendarDensity

Defined in: ui/src/date/date-picker.ts:73

Density of the dropdown Calendar (default 'comfortable'; the popup sizes to it).


firstDayOfWeek?

optional firstDayOfWeek?: 0 | 1

Defined in: ui/src/date/date-picker.ts:69

First day of the week (0 = Sunday, 1 = Monday), forwarded to the dropdown Calendar.


format?

optional format?: DateFormat

Defined in: ui/src/date/date-picker.ts:59

Field format (default ISO YYYY-MM-DD).


isDisabled?

optional isDisabled?: (d) => boolean

Defined in: ui/src/date/date-picker.ts:67

Disabled-day predicate, forwarded to the dropdown Calendar.

Parameters

d

CalendarDate

Returns

boolean


max?

optional max?: CalendarDate

Defined in: ui/src/date/date-picker.ts:65

Inclusive upper bound, forwarded to the dropdown Calendar.


min?

optional min?: CalendarDate

Defined in: ui/src/date/date-picker.ts:63

Inclusive lower bound, forwarded to the dropdown Calendar.


showWeekNumbers?

optional showWeekNumbers?: boolean

Defined in: ui/src/date/date-picker.ts:71

Show ISO week numbers in the dropdown Calendar.


today?

optional today?: CalendarDate

Defined in: ui/src/date/date-picker.ts:61

The "today" day, forwarded to the dropdown Calendar.


value

value: Signal<CalendarDate | null>

Defined in: ui/src/date/date-picker.ts:57

Two-way selected day (null = none).