EasyUI Forum

General Category => Bug Report => Topic started by: dino_f on June 27, 2013, 06:22:26 PM



Title: combobox can't use tooltip
Post by: dino_f 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.'
           });


Title: Re: combobox can't use tooltip
Post by: stworthy on June 27, 2013, 06:42:40 PM
Try this:
Code:
$(...).combobox('textbox').tooltip({...});


Title: Re: combobox can't use tooltip
Post by: dino_f 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'?


Title: Re: combobox can't use tooltip
Post by: dino_f 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');
           });