mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Segment love
This commit is contained in:
@@ -1,13 +1,29 @@
|
||||
<ion-content class="padding">
|
||||
|
||||
<ion-segment>
|
||||
<button ion-button class="active">
|
||||
<ion-segment-button value="standard" ion-button>
|
||||
Standard
|
||||
</ion-segment-button>
|
||||
<ion-segment-button value="hybrid" ion-button>
|
||||
Hybrid
|
||||
</ion-segment-button>
|
||||
<ion-segment-button value="sat" ion-button>
|
||||
Satellite
|
||||
</ion-segment-button>
|
||||
<!--
|
||||
<button ion-button class="active" [segment-value]="standard">
|
||||
Standard
|
||||
</button>
|
||||
<button ion-button>
|
||||
|
||||
<button ion-button [segment-value]="hybrid">
|
||||
Hybrid
|
||||
</button>
|
||||
<button ion-button>
|
||||
|
||||
<button #sat ion-button [segment-value]="sat">
|
||||
Satellite
|
||||
</button>
|
||||
-->
|
||||
|
||||
</ion-segment>
|
||||
|
||||
</ion-content>
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import {Component, View, bootstrap} from 'angular2/angular2'
|
||||
import {FormBuilder, Validators, FormDirectives, ControlGroup} from 'angular2/forms';
|
||||
//import {Button, Switch, Form, List, Label, Item, Input, Content} from 'ionic/ionic';
|
||||
import {IONIC_DIRECTIVES} from 'ionic/ionic'
|
||||
|
||||
console.log([FormDirectives].concat(IONIC_DIRECTIVES));
|
||||
|
||||
@Component({ selector: '[ion-app]' })
|
||||
@View({
|
||||
templateUrl: 'main.html',
|
||||
|
||||
Reference in New Issue
Block a user