You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -182,6 +182,22 @@ You can customize that fragment by using the `id` attribute.
182
182
183
183
Clicking on `My tab` will then append `#custom-fragment` to the url.
184
184
185
+
186
+
### Setting a default tab
187
+
188
+
When disabling the cache, it can be useful to specify a default tab to load which is not the first one. You can select this by passing the `defaultTabHash` option.
189
+
190
+
```html
191
+
<tabs:options="{ defaultTabHash: 'second-tab' }">
192
+
<tabid="first-tab"name="First tab">
193
+
First tab content
194
+
</tab>
195
+
<tabid="second-tab"name="Default tab">
196
+
Second tab content
197
+
</tab>
198
+
</tabs>
199
+
```
200
+
185
201
### CSS
186
202
187
203
You can use the [CSS](docs/resources/tabs-component.css) from the docs as a starting point for your own styling.
0 commit comments