Push notification item<mds-push-notification-item>Generated from @maggioli-design-system/magma@2.3.0dist/documentation.json. Encapsulation: shadow.
Magma components are web components: custom elements you write like HTML tags, with any framework or without one. Props configure them, events tell you what happened, methods are functions you call on the element and slots take the content you put inside it.
Props
Set a prop as an HTML attribute in the markup, or as a property from JavaScript. The Attribute column gives the name of the attribute, a dash when it is the same as the property; props without one, such as arrays and functions, are set from JavaScript only. To turn a boolean attribute off, remove it: never write disabled="false".dateFormatdate-formatstringtimeagoSpecifies if the notification date format shows time passed or displays date as a static string
datetime
-
string | undefinedSpecifies the notification date based on standard ISO 8601.
deletable
-
boolean | undefinedfalseSpecifies if the component is dismissable; when set, a dismiss button is shown.
icon
-
string | undefinedSpecifies the icon to be displayed
initials
-
string | undefinedThe user’s inizials displayed if there’s no image available, initials will override tone and variant senttings to keep user recognizable from others
message
-
stringNessun messaggio disponibileSpecifies the message of the component
preview
-
avatar | image | undefinedimageSpecifies if the src attribute is used to show a the image as avatar or full image
src
-
string | undefinedSpecifies the path to the image
subject
-
string | undefinedSpecifies the subject of the component
tone
-
strong | weak | undefinedweakSpecifies the color tone of the component
variant
-
amaranth | aqua | blue | error | green | info | lime | orange | orchid | primary | purple | red | sky | success | violet | warning | yellow | undefinedSpecifies the color variant of the component
Events
mdsPushNotificationItemCloseMdsPushNotificationItemEventDetailEmits when the component is closed
Slots
Slots take the content you write between the tags of the component. Content for a named slot goes on a direct child with the name of the slot in its slot attribute, such as slot="action".actionAdd HTML elements or components, it is recommended to use mds-button element.
badgeAdd HTML elements or components, it is recommended to use mds-badge element.