@jsvision/ui / DatePickerOptions
Interface: DatePickerOptions
Defined in: ui/src/date/date-picker.ts:57
Options for a DatePicker.
Properties
density?
optionaldensity?:CalendarDensity
Defined in: ui/src/date/date-picker.ts:77
Density of the dropdown Calendar (default 'comfortable'; the popup sizes to it).
firstDayOfWeek?
optionalfirstDayOfWeek?:0|1
Defined in: ui/src/date/date-picker.ts:73
First day of the week (0 = Sunday, 1 = Monday), forwarded to the dropdown Calendar.
format?
optionalformat?:DateFormat
Defined in: ui/src/date/date-picker.ts:63
Field format (default ISO YYYY-MM-DD).
i18n?
readonlyoptionali18n?:I18n
Defined in: ui/src/date/date-picker.ts:59
Explicit translation service forwarded to the popup calendar.
isDisabled?
optionalisDisabled?: (d) =>boolean
Defined in: ui/src/date/date-picker.ts:71
Disabled-day predicate, forwarded to the dropdown Calendar.
Parameters
d
Returns
boolean
max?
optionalmax?:CalendarDate
Defined in: ui/src/date/date-picker.ts:69
Inclusive upper bound, forwarded to the dropdown Calendar.
min?
optionalmin?:CalendarDate
Defined in: ui/src/date/date-picker.ts:67
Inclusive lower bound, forwarded to the dropdown Calendar.
placeholder?
optionalplaceholder?:string|Signal<string>
Defined in: ui/src/date/date-picker.ts:79
A muted hint shown in the field while it is empty; forwarded to the inner text field.
showWeekNumbers?
optionalshowWeekNumbers?:boolean
Defined in: ui/src/date/date-picker.ts:75
Show ISO week numbers in the dropdown Calendar.
today?
optionaltoday?:CalendarDate
Defined in: ui/src/date/date-picker.ts:65
The "today" day, forwarded to the dropdown Calendar.
value
value:
Signal<CalendarDate|null>
Defined in: ui/src/date/date-picker.ts:61
Two-way selected day (null = none).