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
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/components/tabs/demoDynamicTabs/script.js
+25-14Lines changed: 25 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -6,21 +6,32 @@
6
6
7
7
functionAppCtrl($scope,$log){
8
8
vartabs=[
9
-
{title: 'One',content: "Tabs will become paginated if there isn't enough room for them."},
10
-
{title: 'Two',content: "You can swipe left and right on a mobile device to change tabs."},
11
-
{title: 'Three',content: "You can bind the selected tab via the selected attribute on the md-tabs element."},
12
-
{title: 'Four',content: "If you set the selected tab binding to -1, it will leave no tab selected."},
13
-
{title: 'Five',content: "If you remove a tab, it will try to select a new one."},
14
-
{title: 'Six',content: "There's an ink bar that follows the selected tab, you can turn it off if you want."},
15
-
{title: 'Seven',content: "If you set ng-disabled on a tab, it becomes unselectable. If the currently selected tab becomes disabled, it will try to select the next tab."},
16
-
{title: 'Eight',content: "If you look at the source, you're using tabs to look at a demo for tabs. Recursion!"},
17
-
{title: 'Nine',content: "If you set md-theme=\"green\" on the md-tabs element, you'll get green tabs."},
18
-
{title: 'Ten',content: "If you're still reading this, you should just go check out the API docs for tabs!"}
19
-
],
20
-
selected=null,
21
-
previous=null;
9
+
{title: 'Zero (AKA 0, Cero, One - One, -Nineteen + 19, and so forth and so on and continuing into what seems like infinity.)',content: 'Woah...that is a really long title!'},
10
+
{title: 'One',content: "Tabs will become paginated if there isn't enough room for them."},
11
+
{title: 'Two',content: "You can swipe left and right on a mobile device to change tabs."},
12
+
{title: 'Three',content: "You can bind the selected tab via the selected attribute on the md-tabs element."},
13
+
{title: 'Four',content: "If you set the selected tab binding to -1, it will leave no tab selected."},
14
+
{title: 'Five',content: "If you remove a tab, it will try to select a new one."},
15
+
{title: 'Six',content: "There's an ink bar that follows the selected tab, you can turn it off if you want."},
16
+
{title: 'Seven',content: "If you set ng-disabled on a tab, it becomes unselectable. If the currently selected tab becomes disabled, it will try to select the next tab."},
17
+
{title: 'Eight',content: "If you look at the source, you're using tabs to look at a demo for tabs. Recursion!"},
18
+
{title: 'Nine',content: "If you set md-theme=\"green\" on the md-tabs element, you'll get green tabs."},
19
+
{title: 'Ten',content: "If you're still reading this, you should just go check out the API docs for tabs!"},
20
+
{title: 'Eleven',content: "If you're still reading this, you should just go check out the API docs for tabs!"},
21
+
{title: 'Twelve',content: "If you're still reading this, you should just go check out the API docs for tabs!"},
22
+
{title: 'Thirteen',content: "If you're still reading this, you should just go check out the API docs for tabs!"},
23
+
{title: 'Fourteen',content: "If you're still reading this, you should just go check out the API docs for tabs!"},
24
+
{title: 'Fifteen',content: "If you're still reading this, you should just go check out the API docs for tabs!"},
25
+
{title: 'Sixteen',content: "If you're still reading this, you should just go check out the API docs for tabs!"},
26
+
{title: 'Seventeen',content: "If you're still reading this, you should just go check out the API docs for tabs!"},
27
+
{title: 'Eighteen',content: "If you're still reading this, you should just go check out the API docs for tabs!"},
28
+
{title: 'Nineteen',content: "If you're still reading this, you should just go check out the API docs for tabs!"},
29
+
{title: 'Twenty',content: "If you're still reading this, you should just go check out the API docs for tabs!"}
0 commit comments