fyhao / tns-webform-client

MIT License
1 stars 0 forks source link

FlowEngine to support onclick, onfocus, events for the widget #48

Closed fyhao closed 7 years ago

fyhao commented 7 years ago

To allow FlowEngine's widget to register event such as onclick, onfocus, for client side events actions.

Ideas:

Features:

Backlog Tasks:

Test script:

Test script successfully tested onclick and onchange flow. 'params' => array( array('type' => 'label','name'=>'test','id'=>'log'), array('type' => 'text', 'name' => 'username'), array('type' => 'text', 'name' => 'textbtn'), ) , 'events' => array( 'textbtn_onclick' => 'username_click_flow', 'username_onchange' => 'username_change_flow' ) , 'username_click_flow' => array( 'steps' => array( array('type' => 'setValue', 'name' => 'textbtn','value'=>'click'), ) ) , 'username_change_flow' => array( 'steps' => array( array('type' => 'setValue', 'name' => 'textbtn','value'=>'change'), ) )

After feature done, trigger client validation issue

fyhao commented 7 years ago

Working on this in branch dev