New to Kendo UI for AngularStart a free 30-day trial

ToolBarButtonComponent

Represents the Kendo UI ToolBar Button tool for Angular.

Selector

kendo-toolbar-button

Export Name

Accessible in templates as #kendoToolBarButtonInstance="kendoToolBarButton"

Inputs

NameTypeDefaultDescription

className

string | string[] | {[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).

fillMode

ButtonFillMode

The fillMode property specifies the background and border styles of the Button.

The available values are:

  • solid (default)
  • flat
  • outline
  • link
  • null

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.

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.

svgIcon

SVGIcon

Defines an SVGIcon to be rendered within the button. The input can take either an existing Kendo SVG icon or a custom one.

text

string

Specifies the text of the Button (see example).

themeColor

ButtonThemeColor

The Button allows you to specify predefined theme colors. The theme color will be applied as a background and border color while also amending the text color accordingly (see example).

The possible values are:

  • base —Applies coloring based on the base theme color. (default)
  • primary —Applies coloring based on the primary theme color.
  • secondary—Applies coloring based on the secondary theme color.
  • tertiary— Applies coloring based on the tertiary theme color.
  • info—Applies coloring based on the info theme color.
  • success— Applies coloring based on the success theme color.
  • warning— Applies coloring based on the warning theme color.
  • error— Applies coloring based on the error theme color.
  • dark— Applies coloring based on the dark theme color.
  • light— Applies coloring based on the light theme color.
  • inverse— Applies coloring based on the inverse theme color.
  • null —Removes the default CSS class (no class would be rendered).

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.

Events

NameTypeDescription

click

EventEmitter<any>

Fires each time the Button is clicked.

pointerdown

EventEmitter<any>

Fires when the Button pointerdown event is triggered.

selectedChange

EventEmitter<any>

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

In this article
SelectorExport NameInputsEvents
Not finding the help you need?
Contact Support