isSelected

checks whether a specified Sidebar item is selected

boolean isSelected(string id);

Parameters

idstringthe id of a Sidebar item

Returns

booleantrue, if an item of Sidebar is selected, otherwise false

Example

sidebar.isSelected("categoryPost"); // -> returns true/false

Related samples

See also
Change log

added in v6.5

Back to top