feat(item): sliding

This commit is contained in:
Max Lynch
2015-10-06 20:35:54 -05:00
parent 9e8857c81d
commit a33e3f32e9
2 changed files with 8 additions and 0 deletions

View File

@@ -136,6 +136,10 @@ export class ItemSliding {
this.close();
this.didClose = true;
} else {
let openItem = this.list.getOpenItem();
if(openItem && openItem !== this) {
this.didClose = true;
}
if(this.list) {
this.list.closeOpenItem();
}

View File

@@ -79,8 +79,12 @@ export class List extends Ion {
closeOpenItem() {
if(this.openItem) {
this.openItem.close(true);
this.openItem = null;
}
}
getOpenItem() {
return this.openItem;
}
}
/**