@ -95,6 +95,8 @@ function ItemSet(body, options) {
axis : 20
axis : 20
} ,
} ,
showTooltips : true ,
tooltip : {
tooltip : {
followMouse : false ,
followMouse : false ,
overflowMethod : 'flip'
overflowMethod : 'flip'
@ -336,7 +338,7 @@ ItemSet.prototype.setOptions = function(options) {
var fields = [
var fields = [
'type' , 'rtl' , 'align' , 'order' , 'stack' , 'stackSubgroups' , 'selectable' , 'multiselect' , 'itemsAlwaysDraggable' ,
'type' , 'rtl' , 'align' , 'order' , 'stack' , 'stackSubgroups' , 'selectable' , 'multiselect' , 'itemsAlwaysDraggable' ,
'multiselectPerGroup' , 'groupOrder' , 'dataAttributes' , 'template' , 'groupTemplate' , 'visibleFrameTemplate' ,
'multiselectPerGroup' , 'groupOrder' , 'dataAttributes' , 'template' , 'groupTemplate' , 'visibleFrameTemplate' ,
'hide' , 'snap' , 'groupOrderSwap' , 'tooltip' , 'tooltipOnItemUpdateTime'
'hide' , 'snap' , 'groupOrderSwap' , 'showTooltips' , ' tooltip' , 'tooltipOnItemUpdateTime'
] ;
] ;
util . selectiveExtend ( fields , this . options , options ) ;
util . selectiveExtend ( fields , this . options , options ) ;
@ -1881,7 +1883,7 @@ ItemSet.prototype._onMouseOver = function (event) {
}
}
var title = item . getTitle ( ) ;
var title = item . getTitle ( ) ;
if ( title ) {
if ( this . options . showTooltips && title ) {
if ( this . popup == null ) {
if ( this . popup == null ) {
this . popup = new Popup ( this . body . dom . root ,
this . popup = new Popup ( this . body . dom . root ,
this . options . tooltip . overflowMethod || 'flip' ) ;
this . options . tooltip . overflowMethod || 'flip' ) ;
@ -1931,7 +1933,7 @@ ItemSet.prototype._onMouseMove = function (event) {
var item = this . itemFromTarget ( event ) ;
var item = this . itemFromTarget ( event ) ;
if ( ! item ) return ;
if ( ! item ) return ;
if ( this . options . tooltip . followMouse ) {
if ( this . options . showTooltips && this . options . tooltip . followMouse ) {
if ( this . popup ) {
if ( this . popup ) {
if ( ! this . popup . hidden ) {
if ( ! this . popup . hidden ) {
var container = this . body . dom . centerContainer ;
var container = this . body . dom . centerContainer ;