本文整理匯總了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();
}