EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 16, 2024, 02:29:27 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
combobox + tooltip
Pages: [
1
]
« previous
next »
Print
Author
Topic: combobox + tooltip (Read 3468 times)
rezzonico
Full Member
Posts: 183
combobox + tooltip
«
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
Re: combobox + tooltip
«
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
Re: combobox + tooltip
«
Reply #2 on:
January 28, 2019, 03:48:33 AM »
Thanks a lot !
Miche
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...