Zur Navigation Zum Inhalt Kontakt Menu Trova un componente Descrizione generale Lyne Principi Base Accessibilité Sistema di design Guidelines Deutsch Français Italiano English I nostri principi di design Soluzioni focalizzate sull’utente Riconoscibilità Inclusione Riduzione Olistico Autoesplicativo Orientamento all’attività Adeguatezza Portale della marca FFS Logo Orologio digitale Diritti di utilizzazione Colori die base Colori funzionali Colori Off Brand Icone Icone dell'orario Pittogrammi Informazioni sull’accessibilità Über diesen Guide Contatti Letture consigliate Product Owner User Research Interaction Design Visual Design Development Content Design Testing Introduzione Base Componenti Senso & scopo Community Assets Istruzioni What is a design system? Designing Coding FAQ Aiuto Processo Contribution Contatto Introduzione Base Componenti Overview Releases Design Tokens Komponenten Introduzione Base Informazioni Power-Apps Banner pubblicitari digitali SAP Icone delle app Questa pagina non è disponibile nella lingua desiderata. Lingue disponibili Deutsch English Form-Field-Clear Info

Was macht die Komponente?

Sie ist Teil der Form-Field-Komponente.

Wann soll die Komponente eingesetzt werden?

  • Nur innerhalb der Form-Field-Komponente.

Übergeordnete Komponenten

Form-Field
Anatomie
Anatomie der Komponente
Nummer Typ Beschreibung Optional Hinweis
1 Standard-HTML input Nein
1b Standard-HTML input Ja Placeholder
2 Standard-HTML input Nein
3 Komponente sbb-icon Ja Prefix
4 Komponente sbb-icon oder sbb-form-field-clear Ja Suffix
5 Komponente sbb-form-error Nein Datei auswählen
Demo

Beispiele

Default
Disabled
Readonly
Default Negative
Disabled Negative
Readonly Negative
HTML-Markup kopiert.
Implementation

The sbb-form-field-clear component can be used with the sbb-form-field component
to provide the possibility to display a clear button which can clear the input value.

<sbb-form-field>
  <label>Label</label>
  <input type="text" placeholder="Input placeholder" value="Input value" />
  <sbb-form-field-clear></sbb-form-field-clear>
</sbb-form-field>

Note: it currently works with simple inputs and does not support, for example, select inputs.

Properties

Name Attribute Privacy Type Default Description
form form public string | undefined The
element to associate the button with.
name name public string The name of the button element.
negative negative public boolean false Negative coloring variant flag.
type type public SbbButtonType 'button' The type attribute to use for the button.
value value public string The value of the button element.
Impressum Contatto Impostazioni dei cookie