Files
Brandy Carney c98867493a refactor(segment): fixed border width with more than 3 buttons
Added another toolbar with 3 segments for testing and in order to fix
the width on iOS, references #356
2015-10-27 17:47:55 -04:00

84 lines
2.0 KiB
HTML

<ion-toolbar>
<ion-title>
<ion-segment>
<ion-segment-button class="e2eSegmentFriends">
Friends
</ion-segment-button>
<ion-segment-button>
Enemies
</ion-segment-button>
</ion-segment>
</ion-title>
</ion-toolbar>
<ion-content padding>
<h4>Map mode: NgControl</h4>
<form (submit)="doSubmit($event)" [ng-form-model]="myForm">
<ion-segment ng-control="mapStyle" danger>
<ion-segment-button value="standard" class="e2eSegmentStandard">
Standard
</ion-segment-button>
<ion-segment-button value="hybrid">
Hybrid
</ion-segment-button>
<ion-segment-button value="sat">
Satellite
</ion-segment-button>
</ion-segment>
</form>
<p>
Map mode: <b>{{myForm.controls.mapStyle.value}}</b> -
<span [ng-switch]="myForm.controls.mapStyle.value">
<span *ng-switch-when="'standard'">
<b>Standard</b>
</span>
<span *ng-switch-when="'hybrid'">
<b>Hybrid</b>
</span>
<span *ng-switch-when="'sat'">
<b>Satellite</b>
</span>
</span>
</p>
<hr>
<h4>Model style: NgModel</h4>
<ion-segment [(ng-model)]="modelStyle" dark>
<ion-segment-button value="A">
Model A
</ion-segment-button>
<ion-segment-button value="B">
Model B
</ion-segment-button>
<ion-segment-button value="C" class="e2eSegmentModelC">
Model C
</ion-segment-button>
<ion-segment-button value="D">
Model D
</ion-segment-button>
</ion-segment>
<p>Model Style: <b>Model {{ modelStyle }}</b></p>
</ion-content>
<ion-toolbar position="bottom">
<ion-title>
<ion-segment [(ng-model)]="appType" primary>
<ion-segment-button value="paid">
Paid
</ion-segment-button>
<ion-segment-button value="free">
Free
</ion-segment-button>
<ion-segment-button value="top" class="e2eSegmentTopGrossing">
Top Grossing
</ion-segment-button>
</ion-segment>
</ion-title>
</ion-toolbar>