Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
239c178b
Commit
239c178b
authored
13 years ago
by
Marcus Bointon
Browse files
Options
Download
Email Patches
Plain Diff
Clarify docs on how tabs are activated from JS, see
#1000
parent
cfce34e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/assets/bootstrap.zip
+0
-0
docs/assets/bootstrap.zip
docs/javascript.html
+7
-3
docs/javascript.html
docs/templates/pages/javascript.mustache
+7
-3
docs/templates/pages/javascript.mustache
with
14 additions
and
6 deletions
+14
-6
docs/assets/bootstrap.zip
+
0
-
0
View file @
239c178b
No preview for this file type
This diff is collapsed.
Click to expand it.
docs/javascript.html
+
7
-
3
View file @
239c178b
...
@@ -636,9 +636,13 @@ $('#myModal').on('hidden', function () {
...
@@ -636,9 +636,13 @@ $('#myModal').on('hidden', function () {
</div>
</div>
<hr>
<hr>
<h2>
Using bootstrap-tab.js
</h2>
<h2>
Using bootstrap-tab.js
</h2>
<p>
Enable tabbable tabs via javascript:
</p>
<p>
Enable tabbable tabs via javascript (each tab needs to be activated individually):
</p>
<pre
class=
"prettyprint linenums"
>
$('#myTab').tab('show')
</pre>
<pre
class=
"prettyprint linenums"
>
<p>
You can select individual tabs in several ways:
</p>
$('#myTab a').click(function (e) {
e.preventDefault();
$(this).tab('show');
})
</pre>
<p>
You can activate individual tabs in several ways:
</p>
<pre
class=
"prettyprint linenums"
>
<pre
class=
"prettyprint linenums"
>
$('#myTab a[href="#profile"]').tab('show'); //Select tab by name
$('#myTab a[href="#profile"]').tab('show'); //Select tab by name
$('#myTab a:first').tab('show'); //Select first tab
$('#myTab a:first').tab('show'); //Select first tab
...
...
This diff is collapsed.
Click to expand it.
docs/templates/pages/javascript.mustache
+
7
-
3
View file @
239c178b
...
@@ -560,9 +560,13 @@ $('#myModal').on('hidden', function () {
...
@@ -560,9 +560,13 @@ $('#myModal').on('hidden', function () {
</div>
</div>
<hr>
<hr>
<h2>
{{
_i
}}
Using bootstrap-tab.js
{{/
i
}}
</h2>
<h2>
{{
_i
}}
Using bootstrap-tab.js
{{/
i
}}
</h2>
<p>
{{
_i
}}
Enable tabbable tabs via javascript:
{{/
i
}}
</p>
<p>
{{
_i
}}
Enable tabbable tabs via javascript (each tab needs to be activated individually):
{{/
i
}}
</p>
<pre
class=
"prettyprint linenums"
>
$('#myTab').tab('show')
</pre>
<pre
class=
"prettyprint linenums"
>
<p>
{{
_i
}}
You can select individual tabs in several ways:
{{/
i
}}
</p>
$('#myTab a').click(function (e) {
e.preventDefault();
$(this).tab('show');
})
</pre>
<p>
{{
_i
}}
You can activate individual tabs in several ways:
{{/
i
}}
</p>
<pre
class=
"prettyprint linenums"
>
<pre
class=
"prettyprint linenums"
>
$('#myTab a[href="#profile"]').tab('show'); //Select tab by name
$('#myTab a[href="#profile"]').tab('show'); //Select tab by name
$('#myTab a:first').tab('show'); //Select first tab
$('#myTab a:first').tab('show'); //Select first tab
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment