WbkToolBarView.IsRadio

Syntax

IsRadio: Boolean;

Description

The IsRadio property determines whether buttons of the WbkToolBar component are radio buttons.

Comments

Use JSON or the setIsRadio method to set the property value and the getIsRadio method to get the property value.

If the property value is True, buttons of the WbkToolBar component are radio buttons, otherwise they are not.

Default property value is False.

Example

To execute the example, the HTML page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component. Convert buttons on the toolbar into radio buttons:

// Get toolbar for controlling visibility of workbook views
var toolBarView = workbookBox.getDataView().getToolBarView();
// Transform buttons on the toolbar to radio buttons
toolBarView.setIsRadio(True);

After executing the example toolbar buttons have become radio buttons:

See also:

WbkToolBarView