New to Kendo UI for Vue? Start a free 30-day trial

Represents the properties of a single item in the SegmentedControl.

Definition

Package:@progress/kendo-vue-buttons

Properties

Sets the aria-label HTML attribute of the item button.

dir?

string

Sets the dir HTML attribute of the item button. It controls the text direction.

disabled?

boolean

Sets whether the item is disabled.

endIcon?

string

Sets the name of a font icon to render after the item text. The item renders it only when you do not set itemTemplate.

Sets the SVGIcon to render after the item text. Use it with svgIcon to show icons on both sides of the text. The item renders it only when you do not set itemTemplate.

Sets a CSS class that the icon element gets only when the item is selected. It has no effect when you set itemTemplate.

Example:
vue
<SegmentedControl :items="[{ value: 'opt1', text: 'Bold', svgIcon: boldIcon, iconClassName: 'active-icon' }]" />

onBlur?

(e: FocusEvent) => void

Sets a handler that runs when the item button loses the focus.

Parameters:eFocusEvent

onClick?

(e: MouseEvent) => void

Sets a handler that runs when the user clicks the item button.

Parameters:eMouseEvent

onFocus?

(e: FocusEvent) => void

Sets a handler that runs when the item button gets the focus.

Parameters:eFocusEvent

onMouseEnter?

(e: MouseEvent) => void

Sets a handler that runs when the mouse pointer enters the item button.

Parameters:eMouseEvent

onMouseLeave?

(e: MouseEvent) => void

Sets a handler that runs when the mouse pointer leaves the item button.

Parameters:eMouseEvent

svgIcon?

SVGIcon

Sets an SVGIcon that the item renders before its text. The item renders it only when you do not set itemTemplate.

Example:
vue
<SegmentedControl :items="[{ value: 'opt1', text: 'Bold', svgIcon: boldIcon }]" />

text?

string

Sets the text of the item. The item renders the text inside a <span> element only when you do not set itemTemplate.

Example:
vue
<SegmentedControl :items="[{ value: 'opt1', text: 'Option 1' }]" />

title?

string

Sets the title HTML attribute of the item button.

Example:
vue
<SegmentedControl :items="[{ value: 'opt1', title: 'Option 1 tooltip' }]" />

type?

"button" | "submit" | "reset"

Sets the type HTML attribute of the item button.

Default:

"button"

value

string

Sets the unique value of the item. The SegmentedControl compares it with its value to find the selected item.

Example:
vue
<SegmentedControl :items="[{ value: 'option1', text: 'Option 1' }]" />