当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript FabContainer.close方法代码示例

本文整理汇总了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();
		};
开发者ID:xuender,项目名称:family,代码行数:7,代码来源:tree-show.ts

示例2: removeNode

	removeNode() {
		this.fab.close();
		this.addHistory();
		this.nodeCopy();
		this.treeStyle.removeNode();
		this.backService.trackAction('node', 'removeNode');
		this.backService.touch();
	}
开发者ID:xuender,项目名称:family,代码行数:8,代码来源:tree-show.ts

示例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');
	}
开发者ID:xuender,项目名称:family,代码行数:8,代码来源:tree-show.ts

示例4: shareText

	shareText() {
		this.fab.close();
		SocialSharing.share(
			nodeToStr(this.selectNode),
			this.familyTree.title,
			null
		);
		this.backService.touch();
		this.backService.trackAction('node', 'shareText');
	}
开发者ID:xuender,项目名称:family,代码行数:10,代码来源:tree-show.ts

示例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');
	}
开发者ID:xuender,项目名称:family,代码行数:11,代码来源:tree-show.ts

示例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');
	}
开发者ID:xuender,项目名称:family,代码行数:11,代码来源:tree-show.ts

示例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();
	}
开发者ID:xuender,项目名称:family,代码行数:13,代码来源:tree-show.ts

示例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();
			}
		});
开发者ID:xuender,项目名称:family,代码行数:14,代码来源:tree-show.ts

示例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');
		});
	}
开发者ID:xuender,项目名称:family,代码行数:14,代码来源:tree-show.ts

示例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');
			}
		});
	}
开发者ID:xuender,项目名称:family,代码行数:16,代码来源:tree-show.ts


注:本文中的ionic-angular.FabContainer.close方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。