EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: rezzonico on January 24, 2019, 01:59:02 AM



Title: combobox + tooltip
Post by: rezzonico on January 24, 2019, 01:59:02 AM
Hi all,

is it possible to add a different tooltip for each line in a combobox ?


Thanks
Miche


Title: Re: combobox + tooltip
Post by: jarry on January 24, 2019, 08:37:27 PM
Define the 'formatter' function to generate the 'title' attribute for each item.
Code:
$('#cc').combobox({
formatter(row){
return '<div title="'+row.desc+'">'+row.text+'</div>';
}
})


Title: Re: combobox + tooltip
Post by: rezzonico on January 28, 2019, 03:48:33 AM
Thanks a lot !

Miche