From bee049b5105166b9da882b195b89113088d0723b Mon Sep 17 00:00:00 2001 From: leon Date: Tue, 27 Sep 2022 12:12:31 +0800 Subject: [PATCH] Roo/bootstrap/Component.js --- Roo/bootstrap/Component.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Roo/bootstrap/Component.js b/Roo/bootstrap/Component.js index 3279787574..5a5fc3e80c 100644 --- a/Roo/bootstrap/Component.js +++ b/Roo/bootstrap/Component.js @@ -19,6 +19,7 @@ Roo.bootstrap = Roo.bootstrap || {}; * @cfg {string} dataId cutomer id * @cfg {string} name Specifies name attribute * @cfg {string} tooltip Text for the tooltip + * @cfg {string} tooltipClass Class for the tooltip element * @cfg {string} container_method method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer) * @cfg {string|object} visibilityEl (el|parent) What element to use for visibility (@see getVisibilityEl()) @@ -59,6 +60,8 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent, { autoCreate : false, tooltip : null, + + tooltipClass : null, /** * Initialize Events for the element */ @@ -135,6 +138,10 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent, { if (this.tooltip) { this.tooltipEl().attr('tooltip', this.tooltip); } + + if (this.tooltipClass) { + this.tooltipEl().attr('tooltipClass', this.tooltipClass); + } if(this.tabIndex !== undefined){ this.el.dom.setAttribute('tabIndex', this.tabIndex); -- 2.39.2