Skip to content
Edit this page

SiSelectValueTemplateDirective documentation

import { SiSelectValueTemplateDirective } from '@siemens/element-ng/select';

The directive allows to template/customize the selected value rendering in the select input. This requires using the SiSelectSimpleOptionsDirective to specify options as input.

Example:

<si-select [options]="[
  { type: 'option', value: 'good', label: 'Good' },
  { type: 'option', value: 'fair', label: 'Fair' }
]">
  <ng-template siSelectValueTemplate let-option>{{ option.label }}</ng-template>
</si-select>

Except where otherwise noted, content on this site is licensed under MIT License.