ToolBarButtonComponent
Represents the Kendo UI ToolBar Button tool for Angular.
Use this component to render a button inside the ToolBar.
Definition
Package:@progress/kendo-angular-toolbar
Selector:kendo-toolbar-button
Export Name:Accessible in templates as #kendoToolBarButtonInstance="kendoToolBarButton"
Syntax:
<kendo-toolbar>
<kendo-toolbar-button text="Button"></kendo-toolbar-button>
</kendo-toolbar>
Inputs
className
string | string[] | { [key: string]: boolean }
Specifies custom CSS class names to be added to the Button.
disabled
boolean
Disables the Button when set to true
(see example).
fillMode
ButtonFillMode
Specifies the background and border styles of the Button. The default value is set by the Kendo theme.
undefined
icon
string
Defines the name for an existing icon in a Kendo UI theme
(see example).
The icon is rendered inside the Button by a span.k-icon element.
iconClass
string
Defines a CSS class or multiple classes to be applied to a span element inside the Button.
Allows the usage of custom icons.
imageUrl
string
Defines a URL for an image to be rendered inside the Button. The URL can be relative or absolute.
rounded
ButtonRounded
Specifies the border radius of the Button. The default value is set by the Kendo theme.
undefined
selected
boolean
Sets the selected state of the Button.
Use with the toggleable property.
false
Specifies the button icon visibility.
Accepts a DisplayMode value.
'always'
Specifies the button text visibility.
Accepts a DisplayMode value.
'always'
style
{ [key: string]: string | number }
Specifies custom inline CSS styles for the Button.
svgIcon
SVGIcon
Defines an SVGIcon to be rendered within the button. Accepts either an existing Kendo SVG icon or a custom one.
text
string
Specifies the text of the Button (see example).
themeColor
ButtonThemeColor
Specifies the predefined theme color of the Button. The default value is set by the Kendo theme.
undefined
title
string
Specifies the title attribute of the Button.
togglable
boolean
toggleable
boolean
Provides visual styling to indicate if the Button is active
(see example).
For toggleable buttons, set this to true.
false
Events
click
EventEmitter<any>
Fires each time the Button is clicked.
pointerdown
EventEmitter<any>
Fires when the Button's pointerdown event is triggered.
Fires each time the selected state of a toggleable Button is changed. The event argument is the new selected state (Boolean).