Skip to content

Commit

Permalink
docs(segment) add example for default Value
Browse files Browse the repository at this point in the history
Closes #17275
  • Loading branch information
ElianCordoba authored and liamdebeasi committed Apr 26, 2019
1 parent c90dbc3 commit efd6851
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/src/components/segment/usage/angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions core/src/components/segment/usage/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit efd6851

Please sign in to comment.