Preskočiť na obsah

Komponenty

Poskytovateľ oznámení

Zobrazuje dočasné upozornenia v rohu obrazovky.

Použitie

Základná

Your changes have been saved.
HTML
<bs:bsui-toast-provider position="bottom-right">
  <bs:bsui-toast message="Your changes have been saved." />
</bs:bsui-toast-provider>

Viaceré upozornenia

Poskytovateľ zobrazí všetko, čo obsahuje, a každé oznámenie možno zavrieť samostatne.

Build 4821 finished in 42 seconds.
Two pages were prerendered.
Licence key saved.
HTML
<bs:bsui-toast-provider position="top-right">
  <bs:bsui-toast message="Build 4821 finished in 42 seconds." />
  <bs:bsui-toast message="Two pages were prerendered." />
  <bs:bsui-toast message="Licence key saved." />
</bs:bsui-toast-provider>

Štruktúra

Blok Poskytovateľ oznámení sa skladá z nasledujúcich blokov. Každý z nich je samostatný blok, ktorý sa vykresľuje iba vo svojom nadradenom bloku.

  • bsui/toast-provider
  • bsui/toast

Atribúty

AtribútTypPredvolené
position top-right top-left bottom-right bottom-left bottom-right

bsui/toast

AtribútTypPredvolené
message richtext —