Nighthawk

Date selector

Preview

Demo code

Inputs

OptionTypeDefault valuePossible values
colorenumtransparentprimary/secondary/black/white/transparent
sizeenummediumsmall/medium/large
borderbooleanfalsetrue/false
roundedbooleanfalsetrue/false
fullWidthbooleanfalsetrue/false
textAlignenumstartstart/center/end
closeButtonTextstringCloseany string
selectedDateDate-any javascript Date
selectedMonthnumber11-12
selectedYearnumber20240-2038
monthOptionsobject[][]{ name, value }[]
yearOptionsobject[][]{ name, value }[]
closeOnSelectDatebooleantruetrue/false
buttonClassesstring-any string
buttonSelectDateTextstringSelect a dateany string
buttonCloseTextstringCloseany string
buttonSelectMonthTextstringSelect monthany string
buttonSelectYearTextstringSelect yearany string
dateFormatExpressionstringdd.MM.yyyyany string
dropdownOffsetstring8px0-[infinite]px
showMonthSelectorbooleantruetrue/false
showYearSelectorbooleantruetrue/false
dayNamesstring[][ 'M', 'T', 'W', 'T', 'F', 'S', 'S']any string array

Outputs

EventTypeValue
dateSelectedDateEmits the selected date as a JavaScript Date object