|
24 | 24 | </ion-toolbar> |
25 | 25 | </ion-header> |
26 | 26 |
|
27 | | - <ion-content fullscreen padding> |
| 27 | + <ion-content fullscreen> |
| 28 | + <ion-list-header>Default</ion-list-header> |
| 29 | + |
28 | 30 | <!-- Label only --> |
29 | 31 | <ion-segment> |
30 | 32 | <ion-segment-button checked> |
31 | | - <ion-label>Item One</ion-label> |
| 33 | + <ion-label>Call</ion-label> |
32 | 34 | </ion-segment-button> |
33 | 35 | <ion-segment-button> |
34 | | - <ion-label>Item Two</ion-label> |
| 36 | + <ion-label>Favorite</ion-label> |
35 | 37 | </ion-segment-button> |
36 | 38 | <ion-segment-button> |
37 | | - <ion-label>Item Three</ion-label> |
| 39 | + <ion-label>Map</ion-label> |
38 | 40 | </ion-segment-button> |
39 | 41 | </ion-segment> |
40 | 42 |
|
41 | 43 | <!-- Icon only --> |
42 | | - <ion-segment> |
| 44 | + <ion-segment color="secondary"> |
43 | 45 | <ion-segment-button> |
44 | 46 | <ion-icon name="call"></ion-icon> |
45 | 47 | </ion-segment-button> |
|
52 | 54 | </ion-segment> |
53 | 55 |
|
54 | 56 | <!-- Icon top --> |
55 | | - <ion-segment> |
| 57 | + <ion-segment color="tertiary"> |
56 | 58 | <ion-segment-button> |
57 | | - <ion-label>Item One</ion-label> |
| 59 | + <ion-label>Call</ion-label> |
58 | 60 | <ion-icon name="call"></ion-icon> |
59 | 61 | </ion-segment-button> |
60 | 62 | <ion-segment-button checked> |
61 | | - <ion-label>Item Two</ion-label> |
| 63 | + <ion-label>Favorite</ion-label> |
62 | 64 | <ion-icon name="heart"></ion-icon> |
63 | 65 | </ion-segment-button> |
64 | 66 | <ion-segment-button> |
65 | | - <ion-label>Item Three</ion-label> |
| 67 | + <ion-label>Map</ion-label> |
66 | 68 | <ion-icon name="pin"></ion-icon> |
67 | 69 | </ion-segment-button> |
68 | 70 | </ion-segment> |
69 | 71 |
|
70 | 72 | <!-- Icon bottom --> |
71 | | - <ion-segment> |
| 73 | + <ion-segment color="success"> |
72 | 74 | <ion-segment-button checked layout="icon-bottom"> |
73 | 75 | <ion-icon name="call"></ion-icon> |
74 | | - <ion-label>Item One</ion-label> |
| 76 | + <ion-label>Call</ion-label> |
75 | 77 | </ion-segment-button> |
76 | 78 | <ion-segment-button layout="icon-bottom"> |
77 | 79 | <ion-icon name="heart"></ion-icon> |
78 | | - <ion-label>Item Two</ion-label> |
| 80 | + <ion-label>Favorite</ion-label> |
79 | 81 | </ion-segment-button> |
80 | 82 | <ion-segment-button layout="icon-bottom"> |
81 | 83 | <ion-icon name="pin"></ion-icon> |
82 | | - <ion-label>Item Three</ion-label> |
| 84 | + <ion-label>Map</ion-label> |
83 | 85 | </ion-segment-button> |
84 | 86 | </ion-segment> |
85 | 87 |
|
| 88 | + <ion-list-header>Scrollable</ion-list-header> |
| 89 | + |
86 | 90 | <!-- Icon start --> |
87 | | - <ion-segment scrollable> |
| 91 | + <ion-segment color="warning" scrollable> |
88 | 92 | <ion-segment-button checked layout="icon-start"> |
89 | | - <ion-label>Item One</ion-label> |
| 93 | + <ion-label>Call</ion-label> |
90 | 94 | <ion-icon name="call"></ion-icon> |
91 | 95 | </ion-segment-button> |
92 | 96 | <ion-segment-button layout="icon-start"> |
93 | | - <ion-label>Item Two</ion-label> |
| 97 | + <ion-label>Favorite</ion-label> |
94 | 98 | <ion-icon name="heart"></ion-icon> |
95 | 99 | </ion-segment-button> |
96 | 100 | <ion-segment-button layout="icon-start"> |
97 | | - <ion-label>Item Three</ion-label> |
| 101 | + <ion-label>Map</ion-label> |
98 | 102 | <ion-icon name="pin"></ion-icon> |
99 | 103 | </ion-segment-button> |
100 | 104 | </ion-segment> |
101 | 105 |
|
102 | 106 | <!-- Icon end --> |
103 | | - <ion-segment scrollable> |
| 107 | + <ion-segment color="danger" scrollable> |
104 | 108 | <ion-segment-button checked layout="icon-end"> |
105 | 109 | <ion-icon name="call"></ion-icon> |
106 | | - <ion-label>Item One</ion-label> |
107 | | - </ion-segment-button> |
108 | | - <ion-segment-button disabled layout="icon-end"> |
109 | | - <ion-icon name="heart"></ion-icon> |
110 | | - <ion-label>Item Two</ion-label> |
| 110 | + <ion-label>Call</ion-label> |
111 | 111 | </ion-segment-button> |
112 | 112 | <ion-segment-button layout="icon-end"> |
113 | | - <ion-icon name="pin"></ion-icon> |
114 | | - <ion-label>Item Three</ion-label> |
115 | | - </ion-segment-button> |
116 | | - </ion-segment> |
117 | | - |
118 | | - <!-- Disabled --> |
119 | | - <ion-segment scrollable disabled> |
120 | | - <ion-segment-button checked layout="icon-end"> |
121 | | - <ion-icon name="call"></ion-icon> |
122 | | - <ion-label>Item One</ion-label> |
123 | | - </ion-segment-button> |
124 | | - <ion-segment-button layout="icon-end"> |
125 | | - <ion-icon name="heart"></ion-icon> |
126 | | - <ion-label>Item Two</ion-label> |
127 | | - </ion-segment-button> |
128 | | - <ion-segment-button layout="icon-end"> |
129 | | - <ion-icon name="pin"></ion-icon> |
130 | | - <ion-label>Item Three</ion-label> |
131 | | - </ion-segment-button> |
132 | | - </ion-segment> |
133 | | - |
134 | | - <!-- Color --> |
135 | | - <ion-segment scrollable color="secondary"> |
136 | | - <ion-segment-button checked layout="icon-end"> |
137 | | - <ion-icon name="call"></ion-icon> |
138 | | - <ion-label>Item One</ion-label> |
139 | | - </ion-segment-button> |
140 | | - <ion-segment-button disabled layout="icon-end"> |
141 | 113 | <ion-icon name="heart"></ion-icon> |
142 | | - <ion-label>Item Two</ion-label> |
| 114 | + <ion-label>Favorite</ion-label> |
143 | 115 | </ion-segment-button> |
144 | 116 | <ion-segment-button layout="icon-end"> |
145 | 117 | <ion-icon name="pin"></ion-icon> |
146 | | - <ion-label>Item Three</ion-label> |
| 118 | + <ion-label>Map</ion-label> |
147 | 119 | </ion-segment-button> |
148 | 120 | </ion-segment> |
149 | | - |
150 | | - <!-- Overflow Icons --> |
151 | | - <ion-segment scrollable color="tertiary"> |
152 | | - <ion-segment-button> |
153 | | - <ion-icon name="home"></ion-icon> |
154 | | - </ion-segment-button> |
155 | | - <ion-segment-button checked> |
156 | | - <ion-icon name="heart"></ion-icon> |
157 | | - </ion-segment-button> |
158 | | - <ion-segment-button> |
159 | | - <ion-icon name="pin"></ion-icon> |
160 | | - </ion-segment-button> |
161 | | - <ion-segment-button> |
162 | | - <ion-icon name="star"></ion-icon> |
163 | | - </ion-segment-button> |
164 | | - <ion-segment-button> |
165 | | - <ion-icon name="call"></ion-icon> |
166 | | - </ion-segment-button> |
167 | | - <ion-segment-button> |
168 | | - <ion-icon name="globe"></ion-icon> |
169 | | - </ion-segment-button> |
170 | | - <ion-segment-button> |
171 | | - <ion-icon name="basket"></ion-icon> |
172 | | - </ion-segment-button> |
173 | | - </ion-segment> |
174 | | - |
175 | 121 | </ion-content> |
176 | 122 | </ion-app> |
| 123 | + |
| 124 | + <style> |
| 125 | + ion-segment { |
| 126 | + padding: 5px; |
| 127 | + } |
| 128 | + </style> |
177 | 129 | </body> |
178 | 130 |
|
179 | 131 | </html> |
0 commit comments