checkbox wip

This commit is contained in:
Tim Lancina
2015-07-27 15:22:40 -05:00
parent 436ac4af8a
commit 0770abfc44
8 changed files with 130 additions and 108 deletions

View File

@ -108,7 +108,8 @@ export class IonInputItem extends Ion {
itemRegistry.push(this);
}
onIonInit() {
onInit() {
super.onInit();
if (this.input && this.label) {
this.input.id = (this.input.id || 'input-' + this.id);
this.label.labelFor = this.input.id;
@ -122,9 +123,4 @@ export class IonInputItem extends Ion {
registerLabel(label) {
this.label = label;
}
focus() {
this.input && this.input.focus();
}
}