Salta ai contenuti
Magma Design System
Notification<mds-notification>Generato da @maggioli-design-system/magma@2.3.0dist/documentation.json. Incapsulamento: shadow.
Questa pagina è generata dai pacchetti Magma, documentati solo in inglese.
I componenti Magma sono web component: elementi personalizzati che scrivi come i tag HTML, con qualsiasi framework o senza. Le proprietà li configurano, gli eventi dicono cosa è successo, i metodi sono funzioni da chiamare sull'elemento e gli slot accolgono il contenuto che metti al suo interno.
Proprietà
Imposta una proprietà come attributo HTML nel markup, oppure come proprietà da JavaScript. La colonna Attributo dà il nome dell'attributo, un trattino quando coincide con la proprietà; le proprietà senza attributo, come array e funzioni, si impostano solo da JavaScript. Per spegnere un attributo booleano, rimuovilo: non scrivere mai disabled="false".dismissed - booleanfalseSpecifies if the notification is dismissed
max - number | undefinedSpecifies the maximum number that can be seen, assuming that the number is for example 9 and that this is exceeded with 15, the component shows +9
strategy - absolute | disabled | fixedfixedSpecifies the position strategy of the notification
target - stringSpecifies the selector of the target element, this attribute is used with querySelector method.
value - number0Specifies number of notifications to display, if it set to 0, the element will be hidden