EasyUI Forum
May 16, 2024, 02:29:27 PM *
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 + tooltip  (Read 3468 times)
rezzonico
Full Member
***
Posts: 183


View Profile
« 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
« Last Edit: January 24, 2019, 02:04:45 AM by rezzonico » Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 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>';
}
})
Logged
rezzonico
Full Member
***
Posts: 183


View Profile
« Reply #2 on: January 28, 2019, 03:48:33 AM »

Thanks a lot !

Miche
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!