sbb-form-field
If the two components are used within a sbb-form-field,
they are automatically linked and the sbb-datepicker-toggle
will be projected in the prefix
slot of the sbb-form-field
;
otherwise, they can be connected using the datePicker
property as described above.
<sbb-form-field>
<sbb-datepicker-toggle></sbb-datepicker-toggle>
<input />
<sbb-datepicker></sbb-datepicker>
</sbb-form-field>
NOTE: Since the component needs the sbb-datepicker
to work properly,
both standalone or within the sbb-form-field
, they must have the same parent element to be correctly connected.
Name | Attribute | Privacy | Type | Default | Description |
---|---|---|---|---|---|
datePicker | date-picker | public | string | SbbDatepicker | undefined | Datepicker reference. | |
disableAnimation | disable-animation | public | boolean | false | Whether the animation is disabled. |
negative | negative | public | boolean | false | Negative coloring variant flag. |
Name | Privacy | Description | Parameters | Return | Inherited From |
---|---|---|---|---|---|
open | public | Opens the calendar. | void |