@@ -30,33 +30,44 @@ import {Platform} from '../../platform/platform';
30
30
* `checkbox`, `radio`, `toggle`, `range`, `select`, etc.
31
31
*
32
32
* @property [type] - The HTML input type (text, password, email, number, search, tel, or url)
33
- * @property [clearInput] - A clear icon will appear in the input which clears it
33
+ * @property [clearInput] - A clear icon will appear in the input when there is a value. Clicking it clears the input.
34
34
*
35
35
* @usage
36
36
* ```html
37
- * <ion-item>
38
- * <ion-label>Username</ion-label>
39
- * <ion-input></ion-input>
40
- * </ion-item>
41
- *
42
- * <ion-item>
43
- * <ion-label fixed>Website</ion-label>
44
- * <ion-input type="url"></ion-input>
45
- * </ion-item>
46
- *
47
- * <ion-item>
48
- * <ion-label floating>Email</ion-label>
49
- * <ion-input type="email"></ion-input>
50
- * </ion-item>
51
- *
52
- * <ion-item>
53
- * <ion-label stacked>Phone</ion-label>
54
- * <ion-input type="tel"></ion-input>
55
- * </ion-item>
56
- *
57
- * <ion-item>
58
- * <ion-input placeholder="Username" clearInput></ion-input>
59
- * </ion-item>
37
+ * <ion-list>
38
+ * <ion-item>
39
+ * <ion-label primary>Inline Label</ion-label>
40
+ * <ion-input placeholder="Text Input"></ion-input>
41
+ * </ion-item>
42
+ *
43
+ * <ion-item>
44
+ * <ion-label primary fixed>Fixed Label</ion-label>
45
+ * <ion-input type="tel" placeholder="Tel Input"></ion-input>
46
+ * </ion-item>
47
+ *
48
+ * <ion-item>
49
+ * <ion-input type="number" placeholder="Number Input with no label"></ion-input>
50
+ * </ion-item>
51
+ *
52
+ * <ion-item>
53
+ * <ion-label primary stacked>Stacked Label</ion-label>
54
+ * <ion-input type="email" placeholder="Email Input"></ion-input>
55
+ * </ion-item>
56
+ *
57
+ * <ion-item>
58
+ * <ion-label primary stacked>Stacked Label</ion-label>
59
+ * <ion-input type="password" placeholder="Password Input"></ion-input>
60
+ * </ion-item>
61
+ *
62
+ * <ion-item>
63
+ * <ion-label primary floating>Floating Label</ion-label>
64
+ * <ion-input></ion-input>
65
+ * </ion-item>
66
+ *
67
+ * <ion-item>
68
+ * <ion-input placeholder="Clear Input" clearInput></ion-input>
69
+ * </ion-item>
70
+ * </ion-list>
60
71
* ```
61
72
*
62
73
* @demo /docs/v2/demos/input/
0 commit comments