本文整理汇总了TypeScript中ionic-angular.ItemSliding.close方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ItemSliding.close方法的具体用法?TypeScript ItemSliding.close怎么用?TypeScript ItemSliding.close使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ionic-angular.ItemSliding
的用法示例。
在下文中一共展示了ItemSliding.close方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: renameItem
renameItem(item, slidingItem: ItemSliding): void {
let prompt = Alert.create({
title: 'Rename Item',
message: 'Enter the new name of the task for this checklist below:',
inputs: [
{
name: 'name'
}
],
buttons: [
{
text: 'Cancel'
},
{
text: 'Save',
handler: data => {
this.checklist.renameItem(item, data.name);
}
}
]
});
this.nav.present(prompt);
slidingItem.close();
}
示例2: deleteContact
deleteContact(contactId: string, slidingItem: ItemSliding): void {
let options = {
title: '',
message: '',
buttons: [{
text: '',
handler: () => {
this.contactServ.deleteContact(contactId);
}
}, {
text: '',
role: 'cancel'
}]
};
this.localeServ.localize('CONTACT_LIST.DELETE.TITLE', (value:string) => { options.title = value; });
this.localeServ.localize('CONTACT_LIST.DELETE.MESSAGE', (value:string) => { options.message = value; });
this.localeServ.localize('CONTACT_LIST.DELETE.CONFIRM', (value:string) => { options.buttons[0].text = value; });
this.localeServ.localize('CONTACT_LIST.DELETE.CANCEL', (value:string) => { options.buttons[1].text = value; });
let confirm = this.alertCtrl.create(options);
confirm.present();
slidingItem.close();
}
示例3: updateContact
updateContact(contactId: string, contact: IContact, slidingItem: ItemSliding) {
this.navCtrl.push(ContactEditPage, {contactId, contact});
slidingItem.close();
}
示例4: edit
edit(tree: Tree, item: ItemSliding) {
this.treeService.edit(tree);
item.close();
}
示例5: deleteTodo
deleteTodo(slidingItem: ItemSliding, todo: Todo) {
slidingItem.close();
this.todoProvider.deleteTodo(todo);
}
示例6: editTodo
editTodo(slidingItem: ItemSliding, todo: Todo) {
slidingItem.close();
this.navCtrl.push(EditPage, {
todo: todo
});
}
示例7: updateDiary
updateDiary(diaryId: string, diary: IDiary, slidingItem: ItemSliding) {
this.modalCtrl.create(DiaryEditPage, {diaryId, diary}).present();
slidingItem.close();
}
示例9: updateMemo
updateMemo(memoId: string, title: string, slidingItem: ItemSliding) {
this.navCtrl.push(MemoEditPage, {memoId, title});
slidingItem.close();
}