Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
1bafd4c8
Commit
1bafd4c8
authored
Mar 25, 2015
by
Chris Rebert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: #myTab => #myTabs, to slightly increase clarity
parent
2f3076f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
docs/_includes/js/tabs.html
docs/_includes/js/tabs.html
+8
-8
No files found.
docs/_includes/js/tabs.html
View file @
1bafd4c8
...
...
@@ -4,7 +4,7 @@
<h2
id=
"tabs-examples"
>
Example tabs
</h2>
<p>
Add quick, dynamic tab functionality to transition through panes of local content, even via dropdown menus.
</p>
<div
class=
"bs-example bs-example-tabs"
role=
"tabpanel"
data-example-id=
"togglable-tabs"
>
<ul
id=
"myTab"
class=
"nav nav-tabs"
role=
"tablist"
>
<ul
id=
"myTab
s
"
class=
"nav nav-tabs"
role=
"tablist"
>
<li
role=
"presentation"
class=
"active"
><a
href=
"#home"
id=
"home-tab"
role=
"tab"
data-toggle=
"tab"
aria-controls=
"home"
aria-expanded=
"true"
>
Home
</a></li>
<li
role=
"presentation"
><a
href=
"#profile"
role=
"tab"
id=
"profile-tab"
data-toggle=
"tab"
aria-controls=
"profile"
>
Profile
</a></li>
<li
role=
"presentation"
class=
"dropdown"
>
...
...
@@ -41,7 +41,7 @@
<p>
Enable tabbable tabs via JavaScript (each tab needs to be activated individually):
</p>
{% highlight js %}
$('#myTab a').click(function (e) {
$('#myTab
s
a').click(function (e) {
e.preventDefault()
$(this).tab('show')
})
...
...
@@ -50,10 +50,10 @@ $('#myTab a').click(function (e) {
<p>
You can activate individual tabs in several ways:
</p>
{% highlight js %}
$('#myTab a[href="#profile"]').tab('show') // Select tab by name
$('#myTab a:first').tab('show') // Select first tab
$('#myTab a:last').tab('show') // Select last tab
$('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)
$('#myTab
s
a[href="#profile"]').tab('show') // Select tab by name
$('#myTab
s
a:first').tab('show') // Select first tab
$('#myTab
s
a:last').tab('show') // Select last tab
$('#myTab
s
li:eq(2) a').tab('show') // Select third tab (0-indexed)
{% endhighlight %}
<h3>
Markup
</h3>
...
...
@@ -97,7 +97,7 @@ $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)
Activates a tab element and content container. Tab should have either a
<code>
data-target
</code>
or an
<code>
href
</code>
targeting a container node in the DOM.
</p>
{% highlight html %}
<ul
class=
"nav nav-tabs"
role=
"tablist"
id=
"myTab"
>
<ul
class=
"nav nav-tabs"
role=
"tablist"
id=
"myTab
s
"
>
<li
role=
"presentation"
class=
"active"
><a
href=
"#home"
aria-controls=
"home"
role=
"tab"
data-toggle=
"tab"
>
Home
</a></li>
<li
role=
"presentation"
><a
href=
"#profile"
aria-controls=
"profile"
role=
"tab"
data-toggle=
"tab"
>
Profile
</a></li>
<li
role=
"presentation"
><a
href=
"#messages"
aria-controls=
"messages"
role=
"tab"
data-toggle=
"tab"
>
Messages
</a></li>
...
...
@@ -113,7 +113,7 @@ $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)
<script>
$
(
function
()
{
$
(
'
#myTab a:last
'
).
tab
(
'
show
'
)
$
(
'
#myTab
s
a:last
'
).
tab
(
'
show
'
)
})
</script>
{% endhighlight %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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