VTreeviewItem API
name | type | default |
|---|---|---|
boolean
| undefined | |
Controls the active state of the item. This is typically used to highlight the component. | ||
string
| undefined | |
The class applied to the component when it matches the current route. Find more information about the active-class prop on the vue-router documentation. | ||
string
| undefined | |
Deprecated, use | ||
string
| undefined | |
Appends a v-avatar component after default content in the append slot. | ||
| string | (new () => any) | FunctionalComponent | (string | [string, number])[] | undefined | |
Creates a v-icon component after default content in the append slot. | ||
string
| undefined | |
Sets the color of component when not focused. | ||
string | number | boolean | false | |
Applies utility border classes to the component. To use it, you need to omit the | ||
string
| undefined | |
Applies specified color to the control when in an active state or input-value is true - supports utility colors (for example | ||
'default' | 'comfortable' | 'compact' | 'default' | |
Adjusts the vertical height used by the component. | ||
boolean
| false | |
Removes the ability to click or target the component. | ||
string | number | undefined | |
Designates an elevation applied to the component between 0 and 5. You can find more information on the elevation page. | ||
boolean
| false | |
Exactly match the link. Without this, ‘/’ will match every route. You can find more information about the exact prop on the vue-router documentation. | ||
boolean
| false | |
MISSING DESCRIPTION (edit in github) | ||
string | number | undefined | |
Sets the height for the component. | ||
boolean
| false | |
Hide the expand icon and loading indicator next to each item title. | ||
string
| undefined | |
Designates the component as anchor and applies the href attribute. | ||
('leaf' | 'none' | 'line' | 'last-leaf' | 'leaf-link')[] | undefined | |
Array of indent lines to render next to the item. | ||
number
| undefined | |
The index of the item within the treeview list. | ||
false | 'one' | 'two' | 'three' | false | |
The line declaration specifies the minimum height of the item and can also be controlled from v-list with the same prop. | ||
boolean
| undefined | |
Designates that the component is a link. This is automatic when using the href or to prop. | ||
boolean
| false | |
Places the v-treeview-item into a loading state. | ||
string | number | undefined | |
Sets the maximum height for the component. | ||
string | number | undefined | |
Sets the maximum width for the component. | ||
string | number | undefined | |
Sets the minimum height for the component. | ||
string | number | undefined | |
Sets the minimum width for the component. | ||
boolean
| false | |
Reduces the width of v-list-item takes and adds a border radius. | ||
string
| undefined | |
Prepends a v-avatar component in the prepend slot before default content. | ||
string | number | undefined | |
Sets the horizontal spacing between prepend slot and the main content. Also affects indent to ensure expected alignment of group children. | ||
| string | (new () => any) | FunctionalComponent | (string | [string, number])[] | undefined | |
Creates a v-icon component in the prepend slot before default content. | ||
boolean
| false | |
Setting replace prop will call | ||
boolean | { class: string; keys: string[] } | true | |
Applies the v-ripple directive. | ||
string | number | boolean | undefined | |
Designates the border-radius applied to the component. This can be 0, xs, sm, true, lg, xl, pill, circle, and shaped. Find more information on available border radius classes on the Border Radius page. | ||
boolean
| true | |
Reduces the vertical padding or height of the v-treeview-item, making it more compact. | ||
string | number | boolean | undefined | |
Specify a subtitle text for the component. | ||
string | number | undefined | |
Controls the tabindex of the list item. When set, overrides the default tabindex behavior. Automatically set to -1 by VList when using | ||
string | (new () => any) | FunctionalComponent | 'div' | |
Specify a custom tag used on the root element. | ||
string
| undefined | |
Specify a theme for this component and all of its children. | ||
boolean
| false | |
Removes any applied border-radius from the component. | ||
string | number | boolean | undefined | |
Generates a | ||
string | RouteLocationAsRelativeGeneric | RouteLocationAsPathGeneric | undefined | |
Denotes the target route of the link. You can find more information about the to prop on the vue-router documentation. | ||
| string | (new () => any) | FunctionalComponent | (string | [string, number])[] | undefined | |
Allows customization of the icon used to toggle the expansion and collapse of treeview branches. | ||
any
| undefined | |
The value used for selection. Obtained from | ||
'flat' | 'text' | 'elevated' | 'tonal' | 'outlined' | 'plain' | 'text' | |
Applies a distinct style to the component. | ||
string | number | undefined | |
Sets the width for the component. | ||
name | type | |
|---|---|---|
[MouseEvent | KeyboardEvent] | ||
Event that is emitted when the component is clicked. | ||
[PointerEvent] | ||
Emitted when the item is toggled to expand or collapse. | ||
Adds an item inside the input and after input content. | ||
The default Vue slot. | ||
Adds an item outside the input and before input content. | ||
Slot for the component’s subtitle content. | ||
Slot for the component’s title content. | ||
Slot for custom expand icon and loading indicator. | ||
Activate the list item. | ||
The unique identifier of the list item. | ||
Check if the list item is activated. | ||
Check if the list item activates a group. | ||
Check if the list item is selected. | ||
Navigation information if list item functions as a link. | ||
The reference to the parent list component. | ||
The root nested list component | ||
Select this list item. | ||