src/ui/toolbar/controls/smart-toolbar.button.ts
| changeDetection | ChangeDetectionStrategy.Eager |
| providers |
)
|
| selector | smart-toolbar-button |
Properties |
|
Methods |
Inputs |
Outputs |
Accessors |
constructor(injector: Injector, vcRef: ViewContainerRef, globalValues: SmartGlobalValueStoreService, elementRef: ElementRef)
|
|||||||||||||||
|
Parameters :
|
| action |
Type : string
|
|
Sets the action to perform when the button is clicked. |
| dataSource |
Type : string
|
|
Sets the data source name of the toolbar button. |
| disabled |
Type : boolean
|
|
Sets whether the toolbar button is disabled. |
| form |
Type : string
|
|
Sets the form associated with the toolbar button. |
| icon |
Type : string
|
|
Sets the icon of the toolbar button. |
| image |
Type : string
|
|
Sets the image of the toolbar button. |
| itemId |
Type : string
|
|
Sets the item ID of the toolbar button. |
| label |
Type : string
|
|
Sets the label of the toolbar button. |
| menuFunction |
Type : string
|
|
Sets the menu function for the toolbar button. |
| name |
Type : string
|
|
Sets the name of the toolbar button. |
| role |
Type : string
|
|
Sets the role of the toolbar button control. |
| tooltip |
Type : string
|
|
Sets the tooltip of the toolbar button. |
| disabledChange |
Type : EventEmitter<boolean>
|
| onClick |
Type : EventEmitter<SmartToolbarButtonComponent>
|
| addCssClass | ||||||
addCssClass(className: string)
|
||||||
|
Parameters :
Returns :
void
|
| click |
click()
|
|
Returns :
void
|
| handleClick |
handleClick()
|
|
Returns :
void
|
| removeCssClass | ||||||
removeCssClass(className: string)
|
||||||
|
Parameters :
Returns :
void
|
| buttonControl |
Type : ElementRef
|
Decorators :
@ViewChild('buttonControl', {read: ElementRef, static: true})
|
| classList |
Type : string[]
|
Default value : []
|
| domElement |
Type : ElementRef
|
Decorators :
@ViewChild('content', {read: ElementRef, static: true})
|
| Public elementRef |
Type : ElementRef
|
| onChanges |
Type : EventEmitter<void>
|
Default value : new EventEmitter()
|
| label | ||||||||
getlabel()
|
||||||||
|
Returns the label of the toolbar button.
Returns :
string
|
||||||||
setlabel(value: string)
|
||||||||
|
Sets the label of the toolbar button.
Parameters :
Returns :
void
|
| tooltip | ||||||||
gettooltip()
|
||||||||
|
Returns the tooltip of the toolbar button.
Returns :
string
|
||||||||
settooltip(value: string)
|
||||||||
|
Sets the tooltip of the toolbar button.
Parameters :
Returns :
void
|
| image | ||||||||
getimage()
|
||||||||
|
Returns the image of the toolbar button.
Returns :
string
|
||||||||
setimage(value: string)
|
||||||||
|
Sets the image of the toolbar button.
Parameters :
Returns :
void
|
| icon | ||||||||
geticon()
|
||||||||
|
Returns the icon of the toolbar button.
Returns :
string
|
||||||||
seticon(value: string)
|
||||||||
|
Sets the icon of the toolbar button.
Parameters :
Returns :
void
|
| itemId | ||||||||
getitemId()
|
||||||||
|
Returns the item ID of the toolbar button.
Returns :
string
|
||||||||
setitemId(value: string)
|
||||||||
|
Sets the item ID of the toolbar button.
Parameters :
Returns :
void
|
| dataSource | ||||||||
getdataSource()
|
||||||||
|
Returns the data source name of the toolbar button.
Returns :
string
|
||||||||
setdataSource(value: string)
|
||||||||
|
Sets the data source name of the toolbar button.
Parameters :
Returns :
void
|
| content |
getcontent()
|
|
Returns :
HTMLElement
|
| disabled | ||||||||
getdisabled()
|
||||||||
|
Returns whether the toolbar button is disabled.
Returns :
boolean
|
||||||||
setdisabled(value: boolean)
|
||||||||
|
Sets whether the toolbar button is disabled.
Parameters :
Returns :
void
|
| action | ||||||||
getaction()
|
||||||||
|
Returns the action to perform when the button is clicked.
Returns :
string
|
||||||||
setaction(value: string)
|
||||||||
|
Sets the action to perform when the button is clicked.
Parameters :
Returns :
void
|
| form | ||||||||
getform()
|
||||||||
|
Returns the form associated with the toolbar button.
Returns :
string
|
||||||||
setform(value: string)
|
||||||||
|
Sets the form associated with the toolbar button.
Parameters :
Returns :
void
|
| menuFunction | ||||||||
getmenuFunction()
|
||||||||
|
Returns the menu function for the toolbar button.
Returns :
string
|
||||||||
setmenuFunction(value: string)
|
||||||||
|
Sets the menu function for the toolbar button.
Parameters :
Returns :
void
|
| serviceAdapter |
getserviceAdapter()
|
|
Returns :
SmartServiceAdapter
|
| role | ||||||||
getrole()
|
||||||||
|
Returns the role of the toolbar button control.
Returns :
string
|
||||||||
setrole(value: string)
|
||||||||
|
Sets the role of the toolbar button control.
Parameters :
Returns :
void
|
| name | ||||||||
getname()
|
||||||||
|
Returns the name of the toolbar button.
Returns :
string
|
||||||||
setname(value: string)
|
||||||||
|
Sets the name of the toolbar button.
Parameters :
Returns :
void
|
| imageUrl |
getimageUrl()
|
|
Returns the resolved image URL for the toolbar button.
Returns :
string
|
| buttonIcon |
getbuttonIcon()
|
|
Returns the resolved button icon class for the toolbar button.
Returns :
string
|
| clientWidth |
getclientWidth()
|
|
Returns :
number
|