Zur Navigation Zum Inhalt Kontakt Menu Komponente finden Übersicht Lyne Prinzipien Grundlagen Barrierefreiheit Design System Guidelines Deutsch Français Italiano English Unsere Gestaltungsprinzipien Nutzerzentriert Wiedererkennbar Inklusiv Reduziert Ganzheitlich Selbsterklärend Aufgabenorientiert Passend SBB Markenportal Logo Digitale Uhr Nutzungsrechte Basis-Farben Funktionale Farben Off-Brand Farben Icons Fahrplan-Icons Piktogramme Über Barrierefreiheit Über diesen Guide Kontakt Weitere Informationen Product Owner User Research Interaction Design Visual Design Development Content Design Testing Was ist ein Design System?​ Designing Coding FAQ Hilfe Prozess Contribution Kontakt Übersicht Basis Komponenten Übersicht Basis Komponenten Übersicht Basis Komponenten Übersicht Releases Design Tokens Komponenten Übersicht Basis Informationen Sinn & Zweck Community Assets Anleitung Power-Apps Digitale Werbebanner SAP App Icons Datepicker-Next-Day Implementation

The sbb-datepicker-next-day is a component closely connected to the sbb-datepicker;
when the two are used together, the sbb-datepicker-next-day can be used to choose
the date after the selected date, or tomorrow's date if the date-picker's input has no defined value.

The components can be connected using the datePicker property, which accepts the id of the sbb-datepicker,
or directly its reference.

<input id="datepicker-input" />
<sbb-datepicker input="datepicker-input" id="datepicker"></sbb-datepicker>
<sbb-datepicker-next-day date-picker="datepicker"></sbb-datepicker-next-day>

In sbb-form-field

If the two components are used within a sbb-form-field,
they are automatically linked and the sbb-datepicker-next-day will be projected in the suffix slot of the sbb-form-field;
otherwise, they can be connected using the datePicker property as described above.

The sbb-datepicker-next-day has an internal disabled state, which is set looking at the sbb-datepicker's input:
if it is disabled, or if the selected date is equal to the input's max attribute, the component is disabled.

<sbb-form-field>
  <input />
  <sbb-datepicker></sbb-datepicker>
  <sbb-datepicker-next-day></sbb-datepicker-next-day>
</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.

Properties

Name Attribute Privacy Type Default Description
negative negative public boolean false Negative coloring variant flag.
datePicker date-picker public string | SbbDatepickerElement | undefined Datepicker reference.
type type public SbbButtonType 'button' The type attribute to use for the button.
name name public string The name of the button element.
value value public string The value of the button element.
form form public string | undefined The
element to associate the button with.
Beispiele
Standalone
Standalone Negative
With Picker
In Form Field
Empty Form Field
HTML-Markup kopiert.
Komponente finden

Lyne

Impressum Kontakt Cookie Einstellungen