Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2614

ZK DataBinding support client callback function after some command triggered

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 8.0.0
    • Component/s: Databind 2
    • Labels:
      None

      Description

      For example,

      <zk>
      Please click the "Click" button, you should see "clicked !!" in the textarea
      	<div viewModel="@id('vm') @init('org.zkoss.zktest.test2.F80_ZK_2614_VM')">
      		<button label="Click" onClick="@command('clickable')"/>
      	</div>
      	<script>
      	zk.afterMount(function () {
      		var binder = zk.Widget.$(jq("@button")).$binder();
      		binder.after('clickable', function () {
      			zk.log('clicked !!');
      		});
      	});
      	</script>
      </zk>
      

        Activity

        Hide
        jumperchen jumperchen added a comment -

        Ready, since 2/3/2015.

        To enable the client callback function, please specify the following listener into zk.xml

        <listener>
        	<listener-class>org.zkoss.bind.impl.ClientBinderPhaseListener</listener-class>
        </listener>
        
        Show
        jumperchen jumperchen added a comment - Ready, since 2/3/2015. To enable the client callback function, please specify the following listener into zk.xml <listener> <listener-class>org.zkoss.bind.impl.ClientBinderPhaseListener</listener-class> </listener>

          People

          • Assignee:
            jumperchen jumperchen
            Reporter:
            jumperchen jumperchen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: