From d874ab6bba754fd6cbb2a647d7d2a196159cfe16 Mon Sep 17 00:00:00 2001 From: Andy Hebrank Date: Thu, 29 Dec 2016 11:49:48 -0500 Subject: [PATCH] some tweaks --- docs/pages/tabs.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/pages/tabs.md b/docs/pages/tabs.md index 0dbd931a2..fd9beae9d 100644 --- a/docs/pages/tabs.md +++ b/docs/pages/tabs.md @@ -146,14 +146,13 @@ Add the attribute `data-active-collapse="true"` to a tabstrip to collapse active ### Browser history -When the `data-deep-link="true"` attribute is set, the current state of the tabset is recorded by adding a hash with the tab panel ID to the browser URL when a tab opens. By default, tabs *update and replace* the browser history (meaning that the browser does not navigate). Modify this behavior by using attribute `data-update-history="true"` to *append* to the browser history. In the latter case the browser back button will track each click that opens a tab panel. +When the `data-deep-link` option is set to `true`, the current state of the tabset is recorded by adding a hash with the tab panel ID to the browser URL when a tab opens. By default, tabs *replace* the browser history (using `history.replaceState()`). Modify this behavior by using attribute `data-update-history="true"` to *append* to the browser history (using `history.pushState()`). In the latter case the browser back button will track each click that opens a tab panel. By using deep linking (see below), the open state of a page's tabset may be shared by copy-pasting the browser URL. ### Deep linking Add the attribute `data-deep-link="true"` to a tabstrip to: - - modify the browser history when a tab is clicked - allow users to open a particular tab at page load with a hash-appended URL -- 2.47.2