Articles in this section
Category / Section

How to add and configure Line Zoom as a custom widget?

Published:

Follow the below steps to publish the custom widget into the Bold BI application and use it.
Step 1 : Download the Line Zoom custom widget.
Step 2 : Publish the custom widget to the Bold BI application with a help link.
Step 3 : Once you publish the custom widget, the Line Zoom custom widget will appear under the Miscellaneous section of the designer panel as in the following image.

custom_widget.png

Step 4 : Drag and drop the widget and configure the data. The Line Zoom custom widget will render as in the following image.

configured_widget_cw.png

Improvement in the Line Zoom Custom Widget

​Add new improvements such as improving the UI of the LineZoom Custom widget by making changes in the sourcefile.js file.
To debug and make changes in the custom widget, follow these steps:

  • Unpack the LineZoom custom widget (CustomLineZoomWidget.bicw) by following the steps in the mentioned link.
  • Add the debugger to the sourcefile.js file’s init() method. Also, add the needed changes in the sourcefile.js file.
  • Publish the custom widget by following the steps in this link.
  • Now, open the new dashboard in the Bold BI designer.
  • Open the Developer Tools in the Browser.
  • Drag and drop the LineZoom Custom Widget in the Designer.
  • Now, the debugger will trigger.

Methods and use cases in the Line Zoom source file.

The following table explains the use case of the methods available in sourcefile.js.

Methods Use cases
init() This method will trigger when the Line Zoom custom widget is dragged and dropped in the designer or initialized in the viewer.
update() This method will trigger when the widget is resized, data is configured in the widget, and when the changes are made in the property panel.

Related links:

How to create custom widgets

CustomLineZoomWidget.bicw
Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
TF
Written by Thoulathul Fahmeetha
Updated:
Comments (0)
Please  to leave a comment
Access denied
Access denied