how to use events with formhelpers?
Closed this issue · 1 comments
gb5256 commented
Hello out there.
I am using
$this->widget('yiiwheels.widgets.formhelpers.WhTimePickerHelper', ....
and I now realize that there are no event handlers possible like with
$this->widget('yiiwheels.widgets.timepicker.WhTimePicker', ....
I need to update one form field depending on the timePicker, so I want to add a onchange event.
Any ideas how to do that?
thanks for any hints,
gb5256
tonydspaniard commented
@gb5256 Just add your events to the pluginOptions
as shown on plugin documentation.
'pluginOptions' => array(
'eventName' => 'js:function....