mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
@ -76,6 +76,16 @@
|
|||||||
<textarea>KA-CHOW!</textarea>
|
<textarea>KA-CHOW!</textarea>
|
||||||
</ion-input>
|
</ion-input>
|
||||||
|
|
||||||
|
<ion-input>
|
||||||
|
<ion-label>Beginning:</ion-label>
|
||||||
|
<input value="2005-07-30" type="date">
|
||||||
|
</ion-input>
|
||||||
|
|
||||||
|
<ion-input>
|
||||||
|
<ion-label>Time:</ion-label>
|
||||||
|
<input value="12:00pm" type="time">
|
||||||
|
</ion-input>
|
||||||
|
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
|
||||||
<ion-input>
|
<ion-input>
|
||||||
|
@ -106,7 +106,7 @@ export class TextInput {
|
|||||||
* This function is used to add the Angular css classes associated with inputs in forms
|
* This function is used to add the Angular css classes associated with inputs in forms
|
||||||
*/
|
*/
|
||||||
addNgClass(className) {
|
addNgClass(className) {
|
||||||
return this.input.elementRef.nativeElement.classList.contains(className);
|
this.input && this.input.elementRef.nativeElement.classList.contains(className);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -456,7 +456,7 @@ export class TextInput {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
@Directive({
|
@Directive({
|
||||||
selector: 'textarea,input[type=text],input[type=password],input[type=number],input[type=search],input[type=email],input[type=url],input[type=tel]',
|
selector: 'textarea,input[type=text],input[type=password],input[type=number],input[type=search],input[type=email],input[type=url],input[type=tel],input[type=date],input[type=datetime],input[type=datetime-local],input[type=week],input[type=time]',
|
||||||
inputs: ['value'],
|
inputs: ['value'],
|
||||||
host: {
|
host: {
|
||||||
'(focus)': 'focusChange(true)',
|
'(focus)': 'focusChange(true)',
|
||||||
|
Reference in New Issue
Block a user