Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 1x 22x | /** * Copyright (c) Siemens 2016 - 2025 * SPDX-License-Identifier: MIT */ import { ChangeDetectionStrategy, Component, input } from '@angular/core'; import { SiIconComponent } from '@siemens/element-ng/icon'; import { SiHeaderActionIconItemBase } from './si-header-action-item-icon-base.directive'; /** Adds an action item to the header. Should be located inside `.header-actions`. */ @Component({ // eslint-disable-next-line @angular-eslint/component-selector selector: 'button[si-header-action-item], a[si-header-action-item]', imports: [SiIconComponent], templateUrl: './si-header-action-item.component.html', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'header-item focus-inside', '[class.dropdown-toggle]': '!!dropdownTrigger' } }) export class SiHeaderActionItemComponent extends SiHeaderActionIconItemBase { /** The icon to be shown. */ readonly icon = input.required<string>(); } |