File

qwc/projects/qwc/src/lib/components/qwc-dropdown/qwc-dropdown.component.ts

Description

Render qwc-dropdown button and handle its events.

Implements

AfterViewInit OnInit

Metadata

selector qwc-dropdown
templateUrl ./qwc-dropdown.component.html

Index

Properties
Methods
Outputs

Constructor

constructor(_elementRef: ElementRef)
Parameters :
Name Type Optional
_elementRef ElementRef No

Outputs

qwcClick
Type : EventEmitter

Methods

getHostElement
getHostElement()

Get host element

Returns : any

ElementRef

hasHostAttributes
hasHostAttributes(...attributes: string[])

Gets whether the button has one of the given attributes.

Parameters :
Name Type Optional Description
attributes string[] No

Attributes

Returns : any

string[]

ngAfterViewInit
ngAfterViewInit()

Component life cycle hook

Returns : void

void

ngOnInit
ngOnInit()

Component life cycle hook

Returns : void

void

onClick
onClick(event: Event)

On click

Parameters :
Name Type Optional Description
event Event No

Event

Returns : void

void

Properties

elDropdown
Type : ElementRef
Decorators :
@ViewChild('dropdownButton')
instanceDropdownbutton
Type : M.Dropdown
isDisabled
Type : boolean
primaryBtnType
Type : any
qwcId
Type : String

result-matching ""

    No results matching ""