Namespace chip.refresh
The namespace for the CHIP API's refresh contract, which allows you to
handle refresh events.
Defined in: refresh.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
chip.refresh.attachRefresh(fnEventHandler)
Attaches the given event handler to the "refresh" event which is fired
whenever the user requests a refresh of this CHIP's content.
|
Method Detail
<static>
chip.refresh.attachRefresh(fnEventHandler)
Attaches the given event handler to the "refresh" event which is fired
whenever the user requests a refresh of this CHIP's content.
Use
Function.prototype.bind() to determine the event handler's
this or some of its arguments.
Note: Without such an event handler, the CHIP will be recreated to enforce a refresh!
- Parameters:
- {function} fnEventHandler
- the event handler for the "refresh" event
- Since:
- 1.2.0