docs(segment) add example for default Value

Closes #17275
This commit is contained in:
Elian Cordoba
2019-01-26 11:22:53 +00:00
committed by mhartington
parent 74ce34fa68
commit bb05c6e84d
2 changed files with 20 additions and 0 deletions

View File

@ -78,6 +78,16 @@
</ion-segment-button>
</ion-segment>
</ion-toolbar>
<!-- Segment with default selection -->
<ion-segment (ionChange)="segmentChanged($event)" value="javascript">
<ion-segment-button value="python">
<ion-label>Python</ion-label>
</ion-segment-button>
<ion-segment-button value="javascript">
<ion-label>Javascript</ion-label>
</ion-segment-button>
</ion-segment>
```
```typescript

View File

@ -78,6 +78,16 @@
</ion-segment-button>
</ion-segment>
</ion-toolbar>
<!-- Segment with default selection -->
<ion-segment value="javascript">
<ion-segment-button value="python">
<ion-label>Python</ion-label>
</ion-segment-button>
<ion-segment-button value="javascript">
<ion-label>Javascript</ion-label>
</ion-segment-button>
</ion-segment>
```
```javascript