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 27 28 29 30 31 32 | 1x 269x 269x | /**
* Copyright (c) Siemens 2016 - 2025
* SPDX-License-Identifier: MIT
*/
import { NgClass, NgTemplateOutlet } from '@angular/common';
import { ChangeDetectionStrategy, Component, input, TemplateRef } from '@angular/core';
import { SiIconComponent } from '@siemens/element-ng/icon';
import { SiTranslatePipe } from '@siemens/element-translate-ng/translate';
import { SiSelectOptionTemplateDirective } from '../si-select-option-template.directive';
import { SelectOption } from '../si-select.types';
@Component({
selector: 'si-select-option',
imports: [
NgClass,
NgTemplateOutlet,
SiIconComponent,
SiTranslatePipe,
SiSelectOptionTemplateDirective
],
templateUrl: './si-select-option.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
host: {
class: 'd-flex align-items-center overflow-hidden'
}
})
export class SiSelectOptionComponent {
readonly option = input.required<SelectOption<unknown>>();
readonly optionTemplate = input<TemplateRef<unknown>>();
}
|