Skip to content

SiHeaderDropdownTriggerDirective documentation

import { SiHeaderDropdownTriggerDirective } from '@siemens/element-ng/header-dropdown';

Trigger to open dropdowns in a navbar. A dropdown will always be attached to the view, even if not visible.

If a dropdown is opened in desktop mode, it will be reattached to an overlay while being opened.

Input Properties

NameTypeDescription
dropdownData
unknown

Context data passed to the dropdown template.

siHeaderDropdownTriggerForrequired
TemplateRef<unknown>

Template rendered inside the dropdown.

Output Properties

NameTypeDescription
openChange
boolean

Emits whenever a dropdown is opened or closed.

Attributes and Methods

NameTypeDescription
close()
(options?: { all?: boolean; }) => void

Closes the dropdown.

Parameters
(readonly) isOpen
boolean

Whether the dropdown is currently open.

open()
() => void

Opens the dropdown.


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