I want to change image button’s source and blur radius when clicked image…
But cant do that T^T
How can i occur this change event on javascript?..
Even i added ‘new’ at ‘var isBtnClicked = new Observable(false);’ but notting changed …
I want to change image button’s source and blur radius when clicked image…
But cant do that T^T
How can i occur this change event on javascript?..
Even i added ‘new’ at ‘var isBtnClicked = new Observable(false);’ but notting changed …
Hi!
When you set the value of your Observable
you should use the value
property:
isBtnClicked.value = true;
Also, dont use new
when you create observables. Just var myObs = Observable(false/true/1/"or whatever content you want");
Another neat trick: When posting in the forum, you can use regular markdown syntax in order to get neat code formatting with syntax highlighting. https://daringfireball.net/projects/markdown/syntax