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