EasyUI Forum
May 13, 2024, 04:52:29 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: Ajax Tooltip with scrollbars?  (Read 5438 times)
digo
Newbie
*
Posts: 26


View Profile
« on: January 23, 2015, 05:36:27 AM »

Hi!

I would like to use tooltips with fixed width and height.
Need to define tooltip to display a scrollbar, so that bigger content can be viewed.
How can this be done?

Thanks!
Ciao
Digo
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 23, 2015, 09:04:35 AM »

Please refer to the following code:
Code:
$('#dd').tooltip({
content: $('<div></div>'),
onUpdate: function(content){
content.panel({
width: 200,
height:200,
border: false,
href: '_content.html'
});
},
onShow: function(){
var t = $(this);
t.tooltip('tip').unbind().bind('mouseenter', function(){
t.tooltip('show');
}).bind('mouseleave', function(){
t.tooltip('hide');
});
}
});
Logged
digo
Newbie
*
Posts: 26


View Profile
« Reply #2 on: January 30, 2015, 01:29:17 AM »

Hi!

Thanks for your support - works fine!

Ciao
Digo
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!