getToolBarView();
The getToolBarView method returns a group of buttons used to select a data view variant.
It returns an instance of the WbkToolBarView class.
To execute the example, the page must contain the WbkDataBox component named wbkDataBox (see WbkDataBox Constructor), and also the following code must be added in the event handler that processes document opening:
//get object - component for displaying toolbar for managing visibility of report views (instance of the PP.TS.Ui.WbkToolBarView class) var toolBarView = wbkDataBox.getToolBarView(); //Get object of the Chart button - instance of the PP.Ui.ToolBarButton class var chartButton = toolBarView.getChartButton(); //Set whether button is hovered chartButton.setIsHovered(true);
After executing the example the page will show the WbkDataBox component, where the Chart button initially looks as if it is hovered by the cursor.
See also: