Members
InputState.<number>
# constant DEFAULT_INPUT_STATE_NUMBER
InputState.<string>
# constant DEFAULT_INPUT_STATE_STRING
# constant stateClassName
Methods
# addNotification(notification)
Add a notification to the store
Parameters:
Name | Type | Description |
---|---|---|
notification |
NotificationProps
|
# getNotifications() → {Array.<NotificationProps>}
Get all notifications.
array of notifications
Array.<NotificationProps>
# removeNotification(index) → {NotificationProps}
Remove a notification given its index
Parameters:
Name | Type | Description |
---|---|---|
index |
number
|
notification index |
the notificaion that was removed from the store
# typeToClassName(type) → {"is-success"|"is-info"|"is-warning"|"is-danger"|"is-primary"}
Get the css class name for a given notification type.
Parameters:
Name | Type | Description |
---|---|---|
type |
"success"
|
"info"
|
"warning"
|
"error"
|
undefined
|
notification type |
type of string
"is-success"
|
"is-info"
|
"is-warning"
|
"is-danger"
|
"is-primary"