EvgenyT
Total Posts:0
Joined:12/4/2024
[quote="tiobst"]When I use setImageUrl() on the node, it doesn't seem to work.
Actually setImageUrl works (as you can see it in stock demo), but there's one limitation - node should already have image defined when loaded from server. I mean even if you do not want to show image initially, you should put a blank one as
node.ImageUrl. So that setImageUrl() will be able to change it to required one.
Basically - client-side
setImageUrl() can change node image, not to add.[quote="tiobst"]I assume I cannot change certain node font colors to a different color. Does this work client-side?
You can get to node element using
node.getElement() function. So you can further do
var el = node.getElement();
el.style.color = 'blue';
... or you can add css class to this element, etc. Also, you can set CssClass to node at server-side, and alter it at client-side (CSS rules can be changed at client-side).