src/ui/viewer/components/field/directives/editor-button.directive.ts
| Selector | [smartEditorButton] |
Methods |
Inputs |
Outputs |
HostBindings |
HostListeners |
Accessors |
| 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 |
| editorButtonClicked |
Type : EditorButton
|
|
Event emitted when the button is clicked |
| class |
Type : string
|
|
Apply the computed button classes to the host element |
| 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 |
| 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 :
Returns :
void
|
| buttonClasses |
getbuttonClasses()
|
|
Apply the computed button classes to the host element
Returns :
string
|