Interface: INotificationController
molecule.INotificationController
Hierarchy
Partial
<Controller
>↳
INotificationController
Methods
count
▸ Optional
count(name
): number
Count the service event
Parameters
Name | Type | Description |
---|---|---|
name | string | Event name |
Returns
number
Inherited from
Partial.count
Defined in
emit
▸ Optional
emit(name
, ...args
): void
Emit the service event
Parameters
Name | Type | Description |
---|---|---|
name | string | Event name |
...args | any | Arguments |
Returns
void
Inherited from
Partial.emit
Defined in
initView
▸ Optional
Abstract
initView(): void
Returns
void
Inherited from
Partial.initView
Defined in
onActionBarClick
▸ Optional
onActionBarClick(event
, item
): void
Parameters
Name | Type |
---|---|
event | MouseEvent <Element , MouseEvent > |
item | IActionBarItemProps <any > |
Returns
void
Defined in
controller/notification.tsx:22
onClick
▸ Optional
onClick(e
, item
): void
Parameters
Name | Type |
---|---|
e | MouseEvent <Element , MouseEvent > |
item | IStatusBarItem <any > |
Returns
void
Defined in
controller/notification.tsx:21
onCloseNotification
▸ onCloseNotification(item
): void
Parameters
Name | Type |
---|---|
item | INotificationItem <any > |
Returns
void
Defined in
controller/notification.tsx:20
subscribe
▸ Optional
subscribe(name
, listener
): void
Subscribe the service event
Parameters
Name | Type | Description |
---|---|---|
name | string | string [] | Event name |
listener | Function | Listener function |
Returns
void
Inherited from
Partial.subscribe
Defined in
toggleNotifications
▸ toggleNotifications(): void
Toggle the Notifications visibility
Returns
void
Defined in
controller/notification.tsx:29
unsubscribe
▸ Optional
unsubscribe(name
, listener?
): void
Unsubscribe the specific event and the listener function
Parameters
Name | Type | Description |
---|---|---|
name | any | The event name |
listener? | Function | optional, it unsubscribes events via name if not pass the listener function |
Returns
void
Inherited from
Partial.unsubscribe