Skip to content

SiSelectDropdownDirective documentation

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

Structural directive marking the dropdown template for custom selects built with SiCustomSelectDirective.

When placed on an <ng-template>, it automatically registers the template with the parent SiCustomSelectDirective.

Example:

<ng-template si-select-dropdown contentType="listbox">
  <!-- custom dropdown content -->
</ng-template>

Input Properties

Name Type Default Description
closeOnTab
boolean false

Whether pressing Tab closes the dropdown.

Keep this disabled when the dropdown contains controls that users must reach with Tab.

contentType required
SiSelectDropdownContentType

Describes the kind of content rendered by the dropdown. The value is forwarded to the aria-haspopup attribute of the combobox host of the parent SiCustomSelectDirective.

Types Documentation

SiSelectDropdownContentType

'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog'
type alias
import type { SiSelectDropdownContentType } from '@siemens/element-ng/select';

Possible values for the aria-haspopup attribute exposed by the combobox host of a custom select.


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