|
52 | 52 | <div class="grid"> |
53 | 53 |
|
54 | 54 | <div class="grid-item"> |
55 | | - <h2>Select with Helper</h2> |
56 | | - <ion-select class="ion-touched ion-invalid" helperText="Select a fruit" |
57 | | - errorText="No fruit selected"> |
58 | | - <div slot="label">Favorite Fruit <ion-text color="danger">(Required)</ion-text></div> |
| 55 | + <h2>Select with Helper text</h2> |
| 56 | + <ion-select class="ion-touched ion-valid" |
| 57 | + helper-text="Select a fruit" |
| 58 | + value="apple"> |
| 59 | + <div slot="label">Favorite Fruit</div> |
59 | 60 | <ion-select-option value="apple">Apple</ion-select-option> |
60 | 61 | <ion-select-option value="bananna">Bananna</ion-select-option> |
61 | 62 | </ion-select> |
62 | 63 | </div> |
63 | 64 |
|
64 | 65 | <div class="grid-item"> |
65 | | - <h2>Counter with Error</h2> |
66 | | - <ion-input |
67 | | - class="ion-touched ion-invalid" |
68 | | - label="Email" |
69 | | - counter="true" |
70 | | - maxlength="100" |
71 | | - error-text="Please enter a valid email" |
72 | | - ></ion-input> |
| 66 | + <h2>Select with Error text</h2> |
| 67 | + <ion-select class="ion-touched ion-invalid" |
| 68 | + error-text="No fruit selected"> |
| 69 | + <div slot="label">Favorite Fruit</div> |
| 70 | + <ion-select-option value="apple">Apple</ion-select-option> |
| 71 | + <ion-select-option value="bananna">Bananna</ion-select-option> |
| 72 | + </ion-select> |
| 73 | + </div> |
| 74 | + |
| 75 | + <div class="grid-item"> |
| 76 | + <h2>Select with Helper and error text| Valid</h2> |
| 77 | + <ion-select class="ion-touched ion-valid" helper-text="Select a fruit" |
| 78 | + error-text="No fruit selected" value="apple"> |
| 79 | + <div slot="label">Favorite Fruit</div> |
| 80 | + <ion-select-option value="apple">Apple</ion-select-option> |
| 81 | + <ion-select-option value="bananna">Bananna</ion-select-option> |
| 82 | + </ion-select> |
| 83 | + </div> |
| 84 | + |
| 85 | + <div class="grid-item"> |
| 86 | + <h2>Select with no helper or error text</h2> |
| 87 | + <ion-select class="ion-touched ion-valid" |
| 88 | + value="bananna"> |
| 89 | + <div slot="label">Favorite Fruit</div> |
| 90 | + <ion-select-option value="apple">Apple</ion-select-option> |
| 91 | + <ion-select-option value="bananna">Bananna</ion-select-option> |
| 92 | + </ion-select> |
73 | 93 | </div> |
74 | 94 | </div> |
75 | 95 |
|
|
0 commit comments