Skip to content

Date picker

<ns-datepicker>

Overview

Use to help the user enter a date in a form.

The ns-datepicker wraps the ns-inputter component. Guidelines defined for the ns-inputter should also be adhered to when using this component. See <ns-inputter> documentation.

Examples

Guidance

Implementation

Placement

The ns-datepicker component can be used in the following components:

Specification

Attributes

helper

Property
helper
Description
The helper text of the datepicker.
Type
string

label

Property
label
Description
The label of the datepicker.
Type
string

autocomplete

Property
autocomplete
Description
The autocomplete for the input.
Type
string
Default
off

min

Property
min
Description
The minimum date of the datepicker.
Type
string
Default
undefined

max

Property
max
Description
The maximum date of the datepicker.
Type
string
Default
undefined

validation

Property
validation
Description
The input validation of the datepicker.
Type
Array
Default
[]

name

Property
name
Description
The form name of the datepicker.
Type
string

value

Property
value
Description
The value of the datepicker.
Type
string
Default

labelID

Property
labelID
Type
string
Default

heading

Property
heading
Type
string
Default

type

Property
type
Description
The type of the datepicker.
Type
string
Options
standard mask native
Default
standard

Slots

SlotPermitted tagsDescription
tip-details<p> The tip details of the datepicker.

Events

NameDescription
changeThe event fired when the value changes. Returns the value of the datepicker.

Last updated: