Methods
# inner customNotification(type, message, icon)
Throws a notification at the upper right edge of the screen, which disappears automatically
Parameters:
Name | Type | Description |
---|---|---|
type |
String | One from 'Success', 'Warning' or 'Alert' - defines type (and with it the color scheme) for the notification Box |
message |
String | Message that is displayed in the notification |
icon |
String | Icon that will be displayed in the notification. (Must be imported and handled in notificationUtils accordingly!) |
# inner getIconForType(type, icon, colorName)
Will first consider if a special icon is requested and otherwise return the corresponding icon for the notification type.
Parameters:
Name | Type | Description |
---|---|---|
type |
String | One from 'Success', 'Warning' or 'Alert' - defines type (and with it the color scheme) for the notification Box |
icon |
String | Icon that will be displayed in the notification. (Must be imported and handled in notificationUtils accordingly!) |
colorName |
String | Returns the css selector for the matching notification type |
Icon component of the notification