2amigos / yiiwheels

Widget extension library for the YiiStrap extension
http://yiiwheels.2amigos.us
Other
133 stars 77 forks source link

how to use events with formhelpers? #123

Closed gb5256 closed 9 years ago

gb5256 commented 9 years ago

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 9 years ago

@gb5256 Just add your events to the pluginOptions as shown on plugin documentation.

  'pluginOptions' => array(
      'eventName' => 'js:function....