Controlling the State
PanelBar allows you to set an initial
focus state, and override the selection every time a
PanelBar item is selected.
The state of the PanelBar can be controlled by either:
- An internally generated
- User generated unique
idavailable in each
To set the initial state of the PanelBar, provide
uniquePrivateKey values to the
uniquePrivateKey option is generated by the component itself and adopts a specific pattern that applies to each
- The generation starts from the first item, which is
'.0'. The items from the same level of depth are generated respectively as
'.2', and so on.
- The children of the first item are respectively
'.0.2', and so on.
To set the initial state of the PanelBar using custom IDs, provide the
id values of the PanelBar items to the