jui\Widget $clientEvents

$clientEvents public property

The event handlers for the underlying jQuery UI widget. Please refer to the corresponding jQuery UI widget Web page for possible events. For example, this page shows how to use the "Accordion" widget and the supported events (e.g. "create"). Keys are the event names and values are javascript code that is passed to the .on() function as the event handler.

For example you could write the following in your widget configuration:

'clientEvents' => [
    'change' => 'function () { alert('event "change" occured.'); }'
],
public array $clientEvents = []
doc_Yii
2016-10-30 17:06:40
Comments
Leave a Comment

Please login to continue.