0

Tooltips in chosenbox elements

asked 2014-10-28 17:56:44 +0800

eclipse2 gravatar image eclipse2
17 4

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,

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-11-13 09:45:52 +0800

eclipse2 gravatar image eclipse2
17 4

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);"              +
               "}"                                                  + 
             "}");
link publish delete flag offensive edit
0

answered 2014-11-02 10:24:37 +0800

Darksu gravatar image Darksu
1991 1 4

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

link publish delete flag offensive edit
Your answer
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

Follow
1 follower

RSS

Stats

Asked: 2014-10-28 17:56:44 +0800

Seen: 13 times

Last updated: Nov 13 '14

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