本文整理汇总了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;未经允许,请勿转载。 |
请发表评论