NotificationGrid
Extends:
The NotificationGrid component displays a table of notification types and
methods, allowing the user to toggle each combination.
Attrs
user
Member Summary
| Public Members | ||
| public |
A map of which notification checkboxes are loading. |
|
| public |
Information about the available notification methods. |
|
| public |
Information about the available notification types. |
|
Method Summary
| Public Methods | ||
| public |
Build an item list for the notification methods to display in the grid. |
|
| public |
Build an item list for the notification types to display in the grid. |
|
| public |
oncreate(vnode: *) |
|
| public |
oninit(vnode: *) |
|
| public |
preferenceKey(type: String, method: String): String Get the name of the preference key for the given notification type-method combination. |
|
| public |
Toggle the state of the given preferences, based on the value of the first one. |
|
| public |
toggleMethod(method: String) Toggle all notification types for the given method. |
|
| public |
toggleType(type: String) Toggle all notification methods for the given type. |
|
| public |
view(): * |
|
Public Members
Public Methods
public notificationMethods(): ItemList source
Build an item list for the notification methods to display in the grid.
Each notification method is an object which has the following properties:
nameThe name of the notification method.iconThe icon to display in the column header.labelThe label to display in the column header.
public notificationTypes(): ItemList source
Build an item list for the notification types to display in the grid.
Each notification type is an object which has the following properties:
nameThe name of the notification type.iconThe icon to display in the notification grid row.labelThe label to display in the notification grid row.
public oncreate(vnode: *) source
Params:
| Name | Type | Attribute | Description |
| vnode | * |
public oninit(vnode: *) source
Params:
| Name | Type | Attribute | Description |
| vnode | * |
public preferenceKey(type: String, method: String): String source
Get the name of the preference key for the given notification type-method combination.
public toggle(keys: Array) source
Toggle the state of the given preferences, based on the value of the first one.
Params:
| Name | Type | Attribute | Description |
| keys | Array |
public toggleMethod(method: String) source
Toggle all notification types for the given method.
Params:
| Name | Type | Attribute | Description |
| method | String |
Reference
Source
