SegmentedControl
Represents the Kendo UI for Vue SegmentedControl component. Accepts properties of type SegmentedControlProps. Use the SegmentedControl to show a row of button segments from which the user selects one option at a time.
Definition
Package:@progress/kendo-vue-buttons
Properties Interface:SegmentedControlProps
Syntax:
<SegmentedControl :items="[{ value: 'day', text: 'Day' }, { value: 'week', text: 'Week' }]" :default-value="'day'" />
Properties
defaultValue?
string
Sets the value of the initially selected item when you do not set value.
The component ignores later changes to defaultValue.
Sets the items that the SegmentedControl renders as buttons.
[]
itemTemplate?
string | (itemData: SegmentedItemProps) => any
Sets a custom template for the item content. When you set it, it replaces the default content (start icon, text, and end icon).
Accepts a slot name or a render function. The slot receives { props: { item } },
where item is the full item object.
layoutMode?
"compact" | "stretch"
Sets the layout mode of the SegmentedControl.
compact: The items take the width of their content (default).stretch: The items stretch to fill the available width. The component adds thek-segmented-control-stretchedCSS class.
"compact"
rounded?
"small" | "medium" | "large" | "none" | "full"
Sets the border radius of the SegmentedControl. The component maps the value through kendoThemeMaps.roundedMap
to the matching k-rounded-* CSS class.
The available options are:
nonesmallmediumlargefull
undefined (theme-controlled)
size?
"xs" | "small" | "medium" | "large"
Sets the size of the SegmentedControl items. The component maps the value through kendoThemeMaps.sizeMap
to the matching CSS size class.
The available options are:
xssmallmediumlargenull— Does not set a size className.
value?
string
Sets the value of the selected item.
When you set it, you control the selection. Use the change event to update the value.
The item whose value matches this property gets the k-selected CSS class.