當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript compatibility-service.isOneColumnView函數代碼示例

本文整理匯總了TypeScript中common/core/services/compatibility-service.isOneColumnView函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript isOneColumnView函數的具體用法?TypeScript isOneColumnView怎麽用?TypeScript isOneColumnView使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了isOneColumnView函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: updateDashboardSize

	/**
	 * Update tile container sizes
	 * @param {object} additionalBox. If we want to extend dashboard container size we can
	 * use this parameter and add additional area.
	 */
	updateDashboardSize(additionalBox?) {
		if (!this.model)
			return;
		this.updateTileSize();
		this.updateGallerySize();
		const isOneColumn = this.$izendaCompatibilityService.isOneColumnView();
		const maxHeight = this.model.getMaxHeight(isOneColumn);

		let maxHeightPixels = maxHeight * this.tileHeight;
		// update height of union of tiles and additional box it is set
		if (angular.isDefined(additionalBox))
			if (additionalBox.top + additionalBox.height > maxHeightPixels)
				maxHeightPixels = additionalBox.top + additionalBox.height;
		// set height:
		angular.element('.iz-dash-body-container').height((maxHeightPixels + this.tileHeight + 1) + 'px');
	}
開發者ID:izenda,項目名稱:resources,代碼行數:21,代碼來源:dashboard-component.ts

示例2: showTileGridShadow

	/**
	 * Show tile grid shadow
	 */
	showTileGridShadow(shadowBbox, showPlusButton) {
		const isOneColumn = this.$izendaCompatibilityService.isOneColumnView();
		if (isOneColumn)
			return;
		this.isGridShadowVisible = true;
		this.isGridShadowPlusButtonVisible = showPlusButton;
		let left = shadowBbox.left;
		let top = shadowBbox.top;
		const width = shadowBbox.width;
		const height = shadowBbox.height;
		if (left < 0) left = 0;
		if (left + width >= this.tileWidth * 12) left = this.tileWidth * 12 - width;
		if (top < 0) top = 0;
		this.gridShadowStyle = {
			'left': left + 1,
			'top': top + 1,
			'width': width - 1,
			'height': height - 1
		};
	}
開發者ID:izenda,項目名稱:resources,代碼行數:23,代碼來源:dashboard-component.ts

示例3: showGrid

	showGrid() {
		const isOneColumn = this.$izendaCompatibilityService.isOneColumnView();
		if (isOneColumn)
			return;
		this.isGridVisible = true;
	}
開發者ID:izenda,項目名稱:resources,代碼行數:6,代碼來源:dashboard-component.ts

示例4: isOneColumnView

	/**
	 * Check if one column view required
	 */
	isOneColumnView(): boolean {
		return this.$izendaCompatibilityService.isOneColumnView();
	}
開發者ID:izenda,項目名稱:resources,代碼行數:6,代碼來源:tile-back-component.ts

示例5: isOneColumnView

	/**
	 * Check if one column view required
	 */
	get isOneColumnView() {
		return this.$izendaCompatibilityService.isOneColumnView();
	}
開發者ID:izenda,項目名稱:resources,代碼行數:6,代碼來源:toolbar-component.ts


注:本文中的common/core/services/compatibility-service.isOneColumnView函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。