packages/components/layout/eui-header/header-app/header-app-name.component.ts
Custom application name component for use within eui-header-app, allowing HTML content projection for application title. Automatically extracts projected text content and synchronizes it with EuiAppShellService state for global access. Provides an alternative to the appName input property when rich HTML formatting or custom elements are needed. Content is projected via ng-content allowing flexible name composition with links, icons, or formatted text.
Example :<!-- Application name in header -->
<eui-app>
<eui-app-header>
<eui-header>
<eui-header-app>
<eui-header-app-name><strong>My</strong>Workplace</eui-header-app-name>
<eui-header-app-subtitle>Dashboard</eui-header-app-subtitle>
</eui-header-app>
</eui-header>
</eui-app-header>
</eui-app>
| changeDetection | ChangeDetectionStrategy.Default |
| encapsulation | ViewEncapsulation.None |
| selector | eui-header-app-name |
| template | |
Properties |
HostBindings |
| class |
Type : string
|
Default value : 'eui-header-app-name'
|
| string |
Type : string
|
Default value : 'eui-header-app-name'
|
Decorators :
@HostBinding('class')
|