1.1.2 • Published 5 months ago

@maggioli-design-system/mds-push-notification-item v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

mds-push-notification-item

Properties

PropertyAttributeDescriptionTypeDefault
dateFormatdate-formatSpecifies if the notification date format shows time passed or displays date as a static stringstring'timeago'
datetimedatetimeSpecifies the notification date based on standard ISO 8601.string \| undefinedundefined
deletabledeletableSpecifies if the component is dismissable or not, it should be set to true by default is used with it's parent component mds-push-notification-itemsboolean \| undefinedtrue
iconiconSpecifies the icon to be displayedstring \| undefinedundefined
initialsinitialsThe user's inizials displayed if there's no image available, initials will override tone and variant senttings to keep user recognizable from othersstring \| undefinedundefined
messagemessageSpecifies the message of the componentstring'Nessun messaggio disponibile'
previewpreviewSpecifies if the src attribute is used to show a the image as avatar or full image"avatar" \| "image" \| undefined'image'
srcsrcSpecifies the path to the imagestring \| undefinedundefined
subjectsubjectSpecifies the subject of the componentstring \| undefinedundefined
tonetoneSpecifies the color tone of the component"strong" \| "weak" \| undefined'weak'
variantvariantSpecifies the color variant of the component"amaranth" \| "aqua" \| "blue" \| "error" \| "green" \| "info" \| "lime" \| "orange" \| "orchid" \| "primary" \| "sky" \| "success" \| "violet" \| "warning" \| "yellow" \| undefinedundefined

Events

EventDescriptionType
mdsPushNotificationItemCloseEmits when the component is closedCustomEvent<MdsPushNotificationItemEventDetail>

Methods

updateLang() => Promise<void>

Returns

Type: Promise<void>

Slots

SlotDescription
"action"Add HTML elements or components, it is recommended to use mds-button element.
"badge"Add HTML elements or components, it is recommended to use mds-badge element.

Shadow Parts

PartDescription
"actions"The actions wrapper
"avatar"
"content"The content wrapper of the message
"icon"The icon set by icon attribute
"picture"The picture image added by src attribute

Dependencies

Depends on

Graph

graph TD;
  mds-push-notification-item --> mds-avatar
  mds-push-notification-item --> mds-img
  mds-push-notification-item --> mds-text
  mds-push-notification-item --> mds-button
  mds-avatar --> mds-img
  mds-avatar --> mds-icon
  mds-img --> mds-icon
  mds-img --> mds-text
  mds-img --> mds-button
  mds-button --> mds-spinner
  mds-button --> mds-icon
  mds-button --> mds-text
  style mds-push-notification-item fill:#f9f,stroke:#333,stroke-width:4px

Built with love @ Gruppo Maggioli from R&D Department