I am a newbie in Dojo, and I am trying add a tooltip dialog to show more info of an item in dijit.form.MultiSelect but I have no luck so far. Thanks in advance!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this…
1. connect tooltip namespace
get all options from multiselect:
var options = dojo.query("#fruit option"); //where 'fruit' - multiselect idadd tooltip for each options
dojo.forEach(options, function (option, i) {new dijit.Tooltip({
connectId: [option],
label: "value <b> bla bla bla </b> "+ i
});
});
See working page example