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

Name Type Description
dropdownData
unknown

Context data passed to the dropdown template.

siHeaderDropdownTriggerFor required
TemplateRef<unknown>

Template rendered inside the dropdown.

Output Properties

Name Type Description
openChange
boolean

Emits whenever a dropdown is opened or closed.

Attributes and Methods

Name Type Description
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.