Monthpicker API
Import TngMonthpickerComponent and TngYearMonthValue from @tailng-ui/components.
Inputs and models
| Property | Type | Default | Details |
|---|---|---|---|
value | TngYearMonthValue | undefined | undefined | Two-way model for the committed month. |
defaultValue | TngYearMonthValue | current month | Initial uncontrolled month. |
minMonth | TngYearMonthValue | undefined | undefined | Earliest selectable month. |
maxMonth | TngYearMonthValue | undefined | undefined | Latest selectable month. |
allowManualInput | boolean | true | Allows strict YYYY-MM entry. |
readonly | boolean | false | Blocks typing while preserving popup selection. |
disabled | boolean | false | Disables the field and popup interaction. |
placeholder | string | YYYY-MM | Placeholder for the text field. |
required / invalid | boolean | false | Form and accessibility state. |
yearPageSize | number | string | 24 | Number of years displayed per page. |
scrollStrategy | TngOverlayScrollStrategy | reposition | Popup behavior while scrolling. |
Outputs
valueChange emits TngYearMonthValue | undefined through the model, and openChange emits the popup state.