Skip to content
@ng-doc/ui-kit / Class

NgDocEventSwitcherDirective

Re-dispatches the given events of the host on another element, for example the events of an overlay on its origin.

Decorators
@Directive
Selectors
[ngDocEventSwitcher]
Implements
OnInit
DeclarationTypeScript
@Directive({ … })
export class NgDocEventSwitcherDirective implements OnInit { … }

Members

Properties

2
events: InputSignal<string | string[]>
readonly input()

The names of the events to re-dispatch. They are read once, when the directive starts.

switchTo: InputSignal<BaseElement<HTMLElement> | null>
readonly input()

The element that receives the events.

Methods

1
(): void
implements OnInit
—
Symbol
Kind
Class
Decorators
@Directive
Selectors
[ngDocEventSwitcher]
Implements
OnInit
Scope
@ng-doc/ui-kit
Edit this page