packages/ecl/components/ecl-popover/ecl-popover-toggle.directive.ts
Directive used to toggle the visibility of an ecl-popover component.
This directive emits a custom click event and manages accessibility attributes.
| Selector | [eclPopoverToggle] |
Properties |
Methods |
|
Inputs |
Outputs |
HostBindings |
HostListeners |
Accessors |
| class |
Type : string
|
| e2eAttr |
Type : any
|
| tabindex |
Type : number
|
| click |
Type : EventEmitter
|
|
Event emitted when the toggle element is clicked with the left mouse button. |
| attr.aria-expanded |
Type : boolean
|
Default value : false
|
|
Sets the |
| class |
Type : string
|
|
Host binding that applies the appropriate CSS class to the toggle element. |
| mouseup |
Arguments : '$event'
|
|
Emits the |
| Public getHostElement |
getHostElement()
|
|
Returns the native HTML element of the directive. Used internally by the popover to query attributes.
Returns :
HTMLElement
|
| onClick | ||||||
onClick(evt: MouseEvent)
|
||||||
Decorators :
@HostListener('mouseup', ['$event'])
|
||||||
|
Emits the
Parameters :
Returns :
void
|
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| hostElementRef |
Type : unknown
|
Default value : inject(ElementRef)
|
| cssClasses |
getcssClasses()
|
|
Host binding that applies the appropriate CSS class to the toggle element.
Returns :
string
|