組み込みイベントに対するハンドラの設定ができます。
Syntax:
widget.on(event_name, callback)Arguments:
Name | Type | Required | Default | Description |
|---|---|---|---|---|
event_name | String | ○ | イベント名 | |
callback | Function | ○ | ハンドラ |
callback arguments:
Name | Type | Required | Default | Description |
|---|---|---|---|---|
event | Object | 購読したイベント |
Event Names:
Name | Timing |
|---|---|
hide |
|
clickBackdrop | Backdrop がクリックされた時 |
destroyed | Widget が破棄された時 |
widget.on('clickBackdrop', function(evt) {
//
});