EasyUI Forum
May 09, 2024, 03:49:43 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: combobox can't use tooltip  (Read 12957 times)
dino_f
Newbie
*
Posts: 7


View Profile
« on: June 27, 2013, 06:22:26 PM »

combobox can't use tooltip like this:
$(':text[field="domain"]').combobox(
               {
                   valueField: 'id',
                   textField: 'text',
                   panelHeight: 'auto',
                   value: "hsgroup",
                   data: [{ "id": "AA", "text": "AA" }, { "id": "BB", "text": "BB"}]
               }
           );
           $(':text[field="domain"]').tooltip({
               content: 'AAAAAA.'
           });
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: June 27, 2013, 06:42:40 PM »

Try this:
Code:
$(...).combobox('textbox').tooltip({...});
Logged
dino_f
Newbie
*
Posts: 7


View Profile
« Reply #2 on: June 27, 2013, 07:06:58 PM »

Try this:
Code:
$(...).combobox('textbox').tooltip({...});

It work. Thank you.
but other question:
how to display the tooltip on the combobox's drop-down-button position:'right'?
Logged
dino_f
Newbie
*
Posts: 7


View Profile
« Reply #3 on: June 27, 2013, 07:17:21 PM »

Try this:
Code:
$(...).combobox('textbox').tooltip({...});

It work. Thank you.
but other question:
how to display the tooltip on the combobox's drop-down-button position:'right'?

OK,I find the way:
$(':text[field="domain"]').combobox(
               {
                   valueField: 'id',
                   textField: 'text',
                   panelHeight: 'auto',
                   value: "hsgroup",
                   data: [{ "id": "AA", "text": "AA" }, { "id": "BB", "text": "BB"}]
               }
           ).combobox('textbox')
               .focus(function(e) {
                   $(this).next().tooltip({
                       content: 'Test combobox tooltip',
                       position: 'right'
                   }).tooltip('show');
               })
           .blur(function(e) {
               $(this).next().tooltip('hide');
           });
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!