top of page

Always show i-buttons having description

We already have a script to highlight i-buttons having description. In view mode, widget i-buttons are visible only if we hover over the widget. Here is a script to always show the i-buttons with description.



Steps:

  1. Create a dashboard and add some widgets in it. Add description to required widgets

  2. Add below script to dashboard

  3. Save the script and refresh dashboard


dashboard.on('widgetready', function(se, ev){

	if(ev.widget.desc && ev.widget.desc.trim().length > 0)
	{
		let toolBarWidth = 190
		
		console.log(toolBarWidth)
		
		$(`widget[widgetid="${ev.widget.oid}"] widget-header .app-icon--general-info-circle`).css('color', 'red')
		$(`widget[widgetid="${ev.widget.oid}"] widget-header .app-icon--general-info-circle`).closest(' widget-toolbar').css('width', toolBarWidth + 'px')
		$(`widget[widgetid="${ev.widget.oid}"] widget-header .app-icon--general-info-circle`).closest('.widget-toolbar-btn').css('opacity', '1')
	}

})

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
BI Next Level white logo

BI Next Level is your trusted resource for BI customization, data solutions, and expert insights. Explore practical tips, scripts, and tutorials for tools like Sisense, Python, and SQL. Let’s transform your data into impactful insights together.

Quick Links
Connect with us
Copyright © 2024. All Rights Reserved. Designed, Developed & Maintained  by Intertoons
bottom of page