Components
    • Barcodes
    • Buttons
    • Charts
    • Conversational UIupdated
    • Data Query
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdowns
    • Editorupdated
    • Excel Export
    • File Saver
    • Filter
    • Gantt
    • Gauges
    • Gridupdated
    • Icons
    • Indicators
    • Inputs
    • Labels
    • Layoutupdated
    • ListBoxnew
    • ListView
    • Mapbeta
    • Menus
    • Navigation
    • Notification
    • Pager
    • PDF Export
    • PivotGridbeta
    • Popup
    • ProgressBars
    • Ripple
    • Schedulerupdated
    • ScrollView
    • Sortable
    • ToolBar
    • Tooltips
    • TreeList
    • TreeView
    • Typography
    • Uploads
    Styling & Themes
    Common Features
    Project Setup
New to Kendo UI for Angular? Start a free 30-day trial

ButtonDirective

Represents the Kendo UI Button component for Angular.

Selector

button[kendoButton], span[kendoButton]

Export Name

Accessible in templates as #kendoButtonInstance="kendoButton"

Inputs

toggleable

boolean

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

disabled

boolean

If set to true, it disables the Button.

fillMode

ButtonFillMode

The fillMode property specifies the background and border styles of the Button (see example).

The possible values are:

  • flat
  • solid (default)
  • outline
  • clear
  • link
  • none

icon

string

Defines the name for an existing icon in a Kendo UI theme. 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.

rounded

ButtonRounded

The rounded property specifies the border radius of the Button (see example).

The possible values are:

  • small
  • medium (default)
  • large
  • full
  • none

selected

boolean

Sets the selected state of the Button.

size

ButtonSize

The size property specifies the padding of the Button (see example).

The possible values are:

  • small
  • medium (default)
  • large
  • none

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 (default)
  • primary
  • secondary
  • tertiary
  • info
  • success
  • warning
  • error
  • dark
  • light
  • inverse
  • none

Events

click

EventEmitter<any>

Fires each time the user clicks the button.

selectedChange

EventEmitter<any>

Fires each time the selected state of a toggleable button is changed.

The event argument is the new selected state (boolean).

Methods

blur

Blurs the Button component.

focus

Focuses the Button component.