File

src/ui/toolbar/controls/smart-toolbar.button.ts

Implements

OnInit

Metadata

selector smart-toolbar-button
styleUrls ./smart-toolbar.button.css
templateUrl ./smart-toolbar.button.html

Index

Properties
Methods
Inputs
Outputs
Accessors

Constructor

constructor(injector: Injector, vcRef: ViewContainerRef, globalValues: SmartGlobalValueStoreService, elementRef: ElementRef)
Parameters :
Name Type Optional
injector Injector No
vcRef ViewContainerRef No
globalValues SmartGlobalValueStoreService No
elementRef ElementRef No

Inputs

action
Type : string
disabled
Type : boolean
form
Type : string
icon
Type : string
image
Type : string
itemId
Type : string
label
Type : string
role
Type : string
tooltip
Type : string

Outputs

onClick
Type : EventEmitter<SmartToolbarButtonComponent>

Methods

addCssClass
addCssClass(className: string)
Parameters :
Name Type Optional
className string No
Returns : void
click
click()
Returns : void
handleClick
handleClick()
Returns : void
removeCssClass
removeCssClass(className: string)
Parameters :
Name Type Optional
className string No
Returns : void

Properties

buttonControl
Type : ElementRef
Decorators :
@ViewChild('buttonControl', {read: ElementRef, static: true})
domElement
Type : ElementRef
Decorators :
@ViewChild('content', {read: ElementRef, static: true})
Public elementRef
Type : ElementRef

Accessors

content
getcontent()
Returns : HTMLElement
disabled
getdisabled()
Returns : boolean
setdisabled(value: boolean)
Parameters :
Name Type Optional
value boolean No
Returns : void
serviceAdapter
getserviceAdapter()
role
getrole()
Returns : string
setrole(value: string)
Parameters :
Name Type Optional
value string No
Returns : void
imageUrl
getimageUrl()
Returns : string
buttonIcon
getbuttonIcon()
Returns : string
clientWidth
getclientWidth()
Returns : number
<div #content>
        <button 
                [imageUrl]="imageUrl" 
                [iconClass]="buttonIcon"
                [title]="tooltip || label" 
                class="smart-toolbar-button smart-toolbar-item"
                #buttonControl 
                type="button" 
                kendoButton 
                (click)="handleClick()"
        >
                <span *ngIf="(!!imageUrl || !!buttonIcon) && !!label && label !== ''">&nbsp;&nbsp;</span>
                {{label}}
        </button>
</div>

./smart-toolbar.button.css

Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""