本文整理匯總了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');
}
示例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
};
}
示例3: showGrid
showGrid() {
const isOneColumn = this.$izendaCompatibilityService.isOneColumnView();
if (isOneColumn)
return;
this.isGridVisible = true;
}
示例4: isOneColumnView
/**
* Check if one column view required
*/
isOneColumnView(): boolean {
return this.$izendaCompatibilityService.isOneColumnView();
}
示例5: isOneColumnView
/**
* Check if one column view required
*/
get isOneColumnView() {
return this.$izendaCompatibilityService.isOneColumnView();
}