本文整理汇总了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');
}
});
}