當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。