ToolBarButtonComponent

Represents the Kendo UI ToolBar Button tool for Angular.

Selector

kendo-toolbar-button

Export Name

Accessible in templates as #kendoToolBarButtonInstance="kendoToolBarButton"

Inputs

className string | Array | {[key: string]: boolean}

Specifies custom CSS class names that will be added to the Button.

disabled boolean

If disabled is set to true, the Button is disabled
(see example).

look ButtonLook

Changes the visual appearance by using alternative styling options
(see example).

The available values are:

  • bare
  • flat
  • outline

primary boolean

Adds visual weight to the Button and makes it primary
(see example).

selected boolean

Sets the selected state of the Button.

showIcon DisplayMode

Specifies where button icon should be displayed

showText DisplayMode

Specifies where button text should be displayed

style {[key: string]: string | number}

Specifies custom inline CSS styles of the Button.

title string

Specifies the title of the Button.

toggleable boolean

Provides visual styling that indicates if the Button is active
(see example).
By default, toggleable is set to false.

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 separated by spaces—
which are applied to a span element inside the Button. Allows the usage of custom icons.

imageUrl string

Defines a URL which is used for an img element inside the Button.
The URL can be relative or absolute. If relative, it is evaluated with relation to the web page URL.

text string

Specifies the text of the Button (see example).

Events

click EventEmitter

Fires each time the Button is clicked.

selectedChange EventEmitter

Fires each time the selected state of a Toggle Button is changed.
The event argument is the new selected state (Boolean).

Methods

selectedChangeHandler

Parameters

state boolean