New to Kendo UI for Angular? Start 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

selected

boolean

Sets the selected state of the Button.

showIcon

DisplayMode

Specifies where button icon should be displayed

style

{[key: string]: string | number}

Specifies custom inline CSS styles of the Button.

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.
  • secondaryApplies coloring based on the secondary theme color.
  • tertiary Applies coloring based on the tertiary theme color.
  • infoApplies 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.

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 classor 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.

showText

DisplayMode

Specifies where button text should be displayed

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

Not finding the help you need?