-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I need to implement some chosenboxes to have tooltiptext in the selected elements, like this:
h**p://i62.tinypic.com/m82xyc.png
Zk Team, can you extend the chosenbox to allow this behavior? If not, how I can archive this behavior?
Thanks a lot,
Waiting for one reply,
If someone is interested, I made one temporary fix, I added the attribute title to the chosenbox tokens, making one override of JS function.
this.setWidgetOverride("_createLabel",
"function (value) {this.$_createLabel(value);" +
"var addedElement = jq(this.$n())" +
".find('div.'+this.getZclass()+'-item-content')" +
".filter(function() {return $(this).text() == value;});" +
"if(addedElement){ " +
"addedElement.attr('title', value);" +
"}" +
"}");
Hello eclipse2,
At your other post I have answered your question.
http://forum.zkoss.org/question/94992/customize-chosenbox-emptymessage-styling/?answer=95048#post-id-95048
Hope you will find the information useful.
Best Regards,
Darksu
Asked: 2014-10-28 17:56:44 +0800
Seen: 13 times
Last updated: Nov 13 '14
Customize chosenbox emptymessage styling
extend the chosenbox component
Multiple of same composite component on one zul
How to let chexkbox horizontally arranged
Choosenbox : selectedObjects background color
radiogroup onCheck/onChange not calling to the binded command
Can't catch onSearch event when using SimpleListModel with chosenbox