本文整理汇总了TypeScript中@angular/core.HostBinding函数的典型用法代码示例。如果您正苦于以下问题:TypeScript HostBinding函数的具体用法?TypeScript HostBinding怎么用?TypeScript HostBinding使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了HostBinding函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: hostClass
@HostBinding('class.hc-list-item')
get hostClass(): boolean {
return true;
}
示例2: isAriaDisabled
@HostBinding('attr.aria-disabled')
get isAriaDisabled(): string {
return String(this.disabled);
}
示例3: getClass
@HostBinding('class.custom-color') get getClass(){
return true;
}
示例4: isActive
@HostBinding("class.active")
@Input()
public get isActive():boolean {
return this._isActive;
}
示例5: getGradient
@HostBinding('style.backgroundImage') get getGradient(){
return this.linearGradient;
}
示例6: offsidebarOpen
@HostBinding('class.offsidebar-open') get offsidebarOpen() { return this.settings.layout.offsidebarOpen; };
示例7: isCollapsedText
@HostBinding('class.aside-collapsed-text') get isCollapsedText() { return this.settings.layout.isCollapsedText; };
示例8: isApp_SidebarRightOpen
//App Right Sidebar Open/Close
@HostBinding("class.sidebar-overlay-open")
get isApp_SidebarRightOpen() {
return this.config.appLayout.isApp_SidebarRightOpen;
}
示例9: disabled
@HostBinding('attr.disabled')
get disabled(): boolean {
return this.innerDisabled;
}
示例10: isApp_SidebarLeftCollapsed
//App Left Sidebar Menu Open/Close Desktop
@HostBinding("class.app_sidebar-menu-collapsed")
get isApp_SidebarLeftCollapsed() {
return this.config.appLayout.isApp_SidebarLeftCollapsed;
}
示例11: isApp_MobileSidebarLeftOpen
//Left Menu Sidebar Open/Close Tablet & Mobile
@HostBinding("class.app_sidebar-left-open")
get isApp_MobileSidebarLeftOpen() {
return this.config.appLayout.isApp_MobileSidebarLeftOpen;
}
示例12: tabindex
@HostBinding('attr.tabindex')
get tabindex() {
return this.active ? 0 : -1;
}
示例13: active
@HostBinding('attr.aria-selected')
get active() {
return this.tab.active;
}
示例14: innerHTML
@HostBinding('innerHTML')
get innerHTML() {
return this.translatedValue;
}
示例15: horizontal
@HostBinding('class.layout-h') get horizontal() { return this.settings.layout.horizontal; };