本文整理匯總了TypeScript中ionic-angular.FabContainer.close方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript FabContainer.close方法的具體用法?TypeScript FabContainer.close怎麽用?TypeScript FabContainer.close使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ionic-angular.FabContainer
的用法示例。
在下文中一共展示了FabContainer.close方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1:
this.treeStyle.onClickNode = (node: TreeNode) => {
this.selectNode = node;
if (this.fab) {
this.fab.close();
}
this.backService.hold();
};
示例2: removeNode
removeNode() {
this.fab.close();
this.addHistory();
this.nodeCopy();
this.treeStyle.removeNode();
this.backService.trackAction('node', 'removeNode');
this.backService.touch();
}
示例3: paste
paste() {
this.fab.close();
this.addHistory();
new NodeMerger(this.selectNode).merge(this.treeService.copyNode);
this.familyTree.ua = new Date();
this.treeStyle.show();
this.backService.trackAction('node', 'paste');
}
示例4: shareText
shareText() {
this.fab.close();
SocialSharing.share(
nodeToStr(this.selectNode),
this.familyTree.title,
null
);
this.backService.touch();
this.backService.trackAction('node', 'shareText');
}
示例5: shareLink
shareLink() {
this.fab.close();
SocialSharing.share(
'老豆家譜',
this.familyTree.title,
null,
'http://a.app.qq.com/o/simple.jsp?pkgname=cn.oldbean.tree',
);
this.backService.touch();
this.backService.trackAction('node', 'shareLink');
}
示例6: copy
copy() {
this.fab.close();
const toast = this.toastCtrl.create({
message: `${this.selectNode.name}及其後裔已經複製,可粘貼到《老豆家譜》或微信、QQ、郵件中分享。`,
position: 'middle',
duration: 3000
});
toast.present();
this.nodeCopy();
this.backService.trackAction('node', 'copy');
}
示例7: editNode
editNode() {
this.fab.close();
this.treeService.editNode(this.selectNode, this.familyTree)
.then((node) => {
if (node) {
this.addHistory();
Object.assign(this.selectNode, node);
this.familyTree.ua = new Date();
this.treeStyle.show();
}
});
this.backService.touch();
}
示例8: strToNode
.then((str: string) => {
if (str && str !== this.copyStr) {
try {
this.treeService.copyNode = strToNode(str);
this.copyStr = str;
this.fab.close();
} catch (e) {
console.error(e);
this.backService.touch();
}
} else {
this.backService.touch();
}
});
示例9: shareQr
shareQr() {
this.fab.close();
pngToBase64('assets/qr-qq.png')
.then((data) => {
SocialSharing.share(
'老豆家譜',
'老豆家譜',
data,
'http://a.app.qq.com/o/simple.jsp?pkgname=cn.oldbean.tree',
);
this.backService.touch();
this.backService.trackAction('node', 'shareQr');
});
}
示例10: shareImage
shareImage() {
this.fab.close();
this.treeStyle.toImage()
.then((img: string) => {
if (img) {
SocialSharing.share(
null,
this.familyTree.title,
img,
null
);
this.backService.touch();
this.backService.trackAction('node', 'shareImage');
}
});
}