zk-mvvm databinding on change client side fadeout label text?

asked 2020-04-22 21:27:36 +0800

wastemails gravatar image wastemails

<vlayout apply="org.zkoss.bind.BindComposer" viewmodel="@id('vm')@init('pkg$.TestViewModel')"> Dynamic Text: <label value="@load(vm.myText)" style="background:red"/> <button label="Button" onclick="@command('onClickButton')"/> </vlayout>

In above sample code, onClick button Dynamic Text value is modified from server.

My requirement is on every change of the label value, the background color should change to green and fadeout back to red

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2020-04-22 21:27:36 +0800

Seen: 3 times

Last updated: Apr 22 '20

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More