Questa pagina non è disponibile nella lingua desiderata. Lingue disponibili: Deutsch English Action-Group. Übersicht

Anteprima.

Action 1 Action 2 Action 3

Was macht die Komponente?

Eine Action-Group ordnet Buttons und Links zusammen an. So werden verwandte Aktionen gebündelt und einheitlich dargestellt.

Wann soll die Komponente eingesetzt werden?

  • Um mehrere zusammengehörige Aktionen kompakt und übersichtlich darzustellen.
  • Um verwandte Aktionen für die Benutzerführung zu gruppieren.

Componente simile.

Button
Anwendung

Regeln.

  • Die Reihenfolge ist logisch: Aktionen, die den Prozess fortführen, stehen rechts. Aktionen wie «Zurück» oder «Abbrechen» stehen links.
  • Es gibt nur einen Primary-Button.
  • Erlaubt sind Buttons und Block-Links in allen Varianten.
  • Auf kleinen Bildschirmen können die Elemente untereinander und in voller Breite angeordnet werden.

Specifica.

Beispiele Horizontal Allocation 3 0 0.
Horizontal Allocation 1 1 1.
Horizontal Allocation 2 0 1.
Horizontal Allocation 1 0 2.
Vertical.
Vertical Full Width.
Horizontal From Large.
Complex.
HTML in Zwischenablage kopiert.
Implementation

Web Components.

Il web component si trova nel pacchetto @sbb-esta/lyne-elements.

Storybook con esempi interattivi Codice sorgente su GitHub

Documentazione.

The <sbb-action-group> component is a generic content container for action items such as
sbb-button, sbb-block-link or other HTML elements.

Style.

The sbb-action-group behaves like a standard flex element. It can be customized
via CSS rules directly on the <sbb-action-group> element or on the slotted action elements.

A set of CSS classes is available for common layout configurations such as vertical orientation
items and responsive breakpoint variants
(the complete list is available in the layout documentation).

<sbb-action-group class="sbb-orientation-horizontal-from-small">
  <sbb-secondary-button>Action 1</sbb-secondary-button>
  <sbb-button>Action 2</sbb-button>
  <sbb-block-link
    icon-name="chevron-small-left-small"
    href="https://github.com/sbb-design-systems/lyne-components"
  >
    Action 3
  </sbb-block-link>
</sbb-action-group>

Adding the sbb-orientation-vertical-full-width class switches the group to a vertical column layout
where each action item stretches to the full width of the container.

<sbb-action-group class="sbb-orientation-vertical-full-width">
  <sbb-secondary-button>Action 1</sbb-secondary-button>
  <sbb-button>Action 2</sbb-button>
</sbb-action-group>

Angular.

Questo componente è disponibile anche per Angular nel pacchetto @sbb-esta/lyne-angular.

Panoramica Angular API Angular Esempi Angular
API

class: SbbActionGroupElement, sbb-action-group.

Slots.

Name Description
Use the unnamed slot to add sbb-block-link or sbb-button elements to the sbb-action-group.