本文整理匯總了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; };