Configuring the Tabs widget
Each of the different components in the library has a series of options that control which features of the widget are enabled by default. An object literal, or an object reference, can be passed in to the tabs()
widget method to configure these options.
The available options to configure non-default behaviors are shown in the following table:
Option |
Default value |
Used to… |
---|---|---|
|
|
Indicate which panel is open. |
|
|
Allow an active tab to be unselected if it is clicked, so that all of the content panels are hidden and only the tab headings are visible. |
|
|
Disable the widget on page load. We can also pass an array of tab indices (zero-based) in order to disable specific tabs. |
|
|
Specify the event that triggers the display of content panels. |
|
|
Control the height of the tabs widget and each panel. Possible values are |
|
|
Control if or how... |