File

src/ui/viewer/components/field/directives/editor-button.directive.ts

Metadata

Index

Methods
Inputs
Outputs
HostBindings
HostListeners
Accessors

Inputs

button
Type : EditorButton
Required :  true
Default value : { alias: 'smartEditorButton' }

The editor button configuration

standaloneEditorButton
Type : boolean
Default value : false

Flag to indicate if this is a standalone editor button

Outputs

editorButtonClicked
Type : EditorButton

Event emitted when the button is clicked

HostBindings

class
Type : string

Apply the computed button classes to the host element

HostListeners

click

Handle click events on the button Only emits if button is defined

mousedown
Arguments : '$event'

Handle mousedown events to prevent default behavior Prevents focus loss on input fields when clicking the button

Methods

onClick
onClick()
Decorators :
@HostListener('click')

Handle click events on the button Only emits if button is defined

Returns : void
onMouseDown
onMouseDown(event: MouseEvent)
Decorators :
@HostListener('mousedown', ['$event'])

Handle mousedown events to prevent default behavior Prevents focus loss on input fields when clicking the button

Parameters :
Name Type Optional
event MouseEvent No
Returns : void

Accessors

buttonClasses
getbuttonClasses()

Apply the computed button classes to the host element

Returns : string

results matching ""

    No results matching ""