EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Stefan B. on March 12, 2014, 02:38:58 AM



Title: How can i deactivate the tooltip for an validatebox?
Post by: Stefan B. on March 12, 2014, 02:38:58 AM
I have a combobox where the input is required.
But i don't will have a tooltip message.

Can i deactivate the tooltip for this special comboboxes?


Title: Re: How can i deactivate the tooltip for an validatebox?
Post by: stworthy on March 12, 2014, 07:18:24 AM
Why don't have the tooltip message? It can display what errors occurring. If you really want to hide the tooltip message for a combo box component, please try the code below:
Code:
$(function(){
$('#cc').combobox('textbox').validatebox('options').tipOptions = {
onShow: function(){
$(this).tooltip('tip').hide();
},
onHide: function(){
$(this).tooltip('destroy');
}
}
})


Title: Re: How can i deactivate the tooltip for an validatebox?
Post by: Stefan B. on March 21, 2014, 05:47:06 AM
Why don't have the tooltip message? It can display what errors occurring.

Yes it's correct, but we show an Icon for required input text fields so that is enough in some cases.

I think there should be an global parameter for validateboxes to deactivate the tooltip message,
so that only the icon for validate box is shown. In example we would use that on comboboxes to show this is an required field.