Customizing Treeview

Variables

The following table lists the available variables for customization.

NameTypeDefault valueComputed value
$kendo-treeview-font-familyStringvar( --kendo-font-family, inherit )var(--kendo-font-family, inherit)
Description
The font family of the TreeView.
$kendo-treeview-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the TreeView.
$kendo-treeview-sm-font-sizeStringvar( --kendo-font-size-sm, inherit )var(--kendo-font-size-sm, inherit)
Description
The font size of the small TreeView.
$kendo-treeview-md-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the medium TreeView.
$kendo-treeview-lg-font-sizeStringvar( --kendo-font-size, inherit )var(--kendo-font-size, inherit)
Description
The font size of the large TreeView.
$kendo-treeview-line-heightStringvar( --kendo-line-height, normal )var(--kendo-line-height, normal)
Description
The line height of the TreeView.
$kendo-treeview-sm-line-heightNumberk-math-div( 20, 14 )1.4285714286
Description
The line height of the small TreeView.
$kendo-treeview-md-line-heightStringvar( --kendo-line-height, normal )var(--kendo-line-height, normal)
Description
The line height of the medium TreeView.
$kendo-treeview-lg-line-heightStringvar( --kendo-line-height, normal )var(--kendo-line-height, normal)
Description
The line height of the large TreeView.
$kendo-treeview-indentNumber24px24px
Description
The indentation of child groups in the TreeView.
$kendo-treeview-item-padding-xStringk-spacing(3)var(--kendo-spacing-3, 0.75rem)
Description
The horizontal padding of the TreeView items.
$kendo-treeview-sm-item-padding-xStringk-spacing(2)var(--kendo-spacing-2, 0.5rem)
Description
The horizontal padding of the small TreeView items.
$kendo-treeview-md-item-padding-xStringk-spacing(3)var(--kendo-spacing-3, 0.75rem)
Description
The horizontal padding of the medium TreeView items.
$kendo-treeview-lg-item-padding-xStringk-spacing(3)var(--kendo-spacing-3, 0.75rem)
Description
The horizontal padding of the large TreeView items.
$kendo-treeview-item-padding-yStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the TreeView items.
$kendo-treeview-sm-item-padding-yStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the small TreeView items.
$kendo-treeview-md-item-padding-yStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The vertical padding of the medium TreeView items.
$kendo-treeview-lg-item-padding-yStringk-spacing(2)var(--kendo-spacing-2, 0.5rem)
Description
The vertical padding of the large TreeView items.
$kendo-treeview-item-border-widthNumber0px0px
Description
The border width of the TreeView items.
$kendo-treeview-item-border-radiusStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The border radius of the TreeView items.
$kendo-treeview-sm-checkbox-padding-xStringk-spacing(1)var(--kendo-spacing-1, 0.25rem)
Description
The horizontal padding of the checkbox in the small TreeView.
$kendo-treeview-md-checkbox-padding-xString$kendo-treeview-sm-checkbox-padding-xvar(--kendo-spacing-1, 0.25rem)
Description
The horizontal padding of the checkbox in the medium TreeView.
$kendo-treeview-lg-checkbox-padding-xString$kendo-treeview-sm-checkbox-padding-xvar(--kendo-spacing-1, 0.25rem)
Description
The horizontal padding of the checkbox in the large TreeView.
$kendo-treeview-sm-checkbox-padding-yStringk-spacing(0.5)var(--kendo-spacing-0\.5, 0.125rem)
Description
The vertical padding of the checkbox in the small TreeView.
$kendo-treeview-md-checkbox-padding-yNullnullnull
Description
The vertical padding of the checkbox in the medium TreeView.
$kendo-treeview-lg-checkbox-padding-yNullnullnull
Description
The vertical padding of the checkbox in the large TreeView.
$kendo-treeview-sizesMap( sm: ( font-size: $kendo-treeview-sm-font-size, line-height: $kendo-treeview-sm-line-height, item-padding-x: $kendo-treeview-sm-item-padding-x, item-padding-y: $kendo-treeview-sm-item-padding-y, checkbox-padding-x: $kendo-treeview-sm-checkbox-padding-x, checkbox-padding-y: $kendo-treeview-sm-checkbox-padding-y ), md: ( font-size: $kendo-treeview-md-font-size, line-height: $kendo-treeview-md-line-height, item-padding-x: $kendo-treeview-md-item-padding-x, item-padding-y: $kendo-treeview-md-item-padding-y, checkbox-padding-x: $kendo-treeview-md-checkbox-padding-x, checkbox-padding-y: $kendo-treeview-md-checkbox-padding-y ), lg: ( font-size: $kendo-treeview-lg-font-size, line-height: $kendo-treeview-lg-line-height, item-padding-x: $kendo-treeview-lg-item-padding-x, item-padding-y: $kendo-treeview-lg-item-padding-y, checkbox-padding-x: $kendo-treeview-lg-checkbox-padding-x, checkbox-padding-y: $kendo-treeview-lg-checkbox-padding-y ) )(sm: (font-size: var(--kendo-font-size-sm, inherit), line-height: 1.4285714286, item-padding-x: var(--kendo-spacing-2, 0.5rem), item-padding-y: var(--kendo-spacing-1, 0.25rem), checkbox-padding-x: var(--kendo-spacing-1, 0.25rem), checkbox-padding-y: var(--kendo-spacing-0\.5, 0.125rem)), md: (font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal), item-padding-x: var(--kendo-spacing-3, 0.75rem), item-padding-y: var(--kendo-spacing-1, 0.25rem), checkbox-padding-x: var(--kendo-spacing-1, 0.25rem), checkbox-padding-y: null), lg: (font-size: var(--kendo-font-size, inherit), line-height: var(--kendo-line-height, normal), item-padding-x: var(--kendo-spacing-3, 0.75rem), item-padding-y: var(--kendo-spacing-2, 0.5rem), checkbox-padding-x: var(--kendo-spacing-1, 0.25rem), checkbox-padding-y: null))
Description
The sizes map of the TreeView.
$kendo-treeview-bgNullnullnull
Description
The background color of the TreeView.
$kendo-treeview-textString$kendo-component-textvar(--kendo-color-on-app-surface, #212529)
Description
The text color of the TreeView.
$kendo-treeview-borderNullnullnull
Description
The border color of the TreeView.
$kendo-treeview-item-hover-bgString$kendo-hover-bgvar(--kendo-color-base-subtle-hover, #dee2e6)
Description
The background color of hovered TreeView items.
$kendo-treeview-item-hover-textString$kendo-hover-textvar(--kendo-color-on-app-surface, #212529)
Description
The text color of hovered TreeView items.
$kendo-treeview-item-hover-borderString$kendo-treeview-item-hover-bgvar(--kendo-color-base-subtle-hover, #dee2e6)
Description
The border color of hovered TreeView items.
$kendo-treeview-item-hover-gradientNullnullnull
Description
The background gradient of hovered TreeView items.
$kendo-treeview-item-selected-bgString$kendo-selected-bgvar(--kendo-color-primary, #0d6efd)
Description
The background color of selected TreeView items.
$kendo-treeview-item-selected-textString$kendo-selected-textvar(--kendo-color-on-primary, #ffffff)
Description
The text color of selected TreeView items.
$kendo-treeview-item-selected-borderString$kendo-treeview-item-selected-bgvar(--kendo-color-primary, #0d6efd)
Description
The border color of selected TreeView items.
$kendo-treeview-item-selected-gradientNullnullnull
Description
The background gradient of selected TreeView items.
$kendo-treeview-item-focus-shadowListinset 0 0 0 2px if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 15%, transparent), rgba( $kendo-treeview-text, .15 ))inset 0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #212529) 15%, transparent)
Description
The box shadow of focused TreeView items.
$kendo-treeview-loadmore-bgColortransparenttransparent
Description
The background color of the Load More button in the TreeView.
$kendo-treeview-loadmore-textString$kendo-link-textvar(--kendo-color-primary, #0d6efd)
Description
The text color of the Load More button in the TreeView.
$kendo-treeview-loadmore-borderNullnullnull
Description
The border color of the Load More button in the TreeView.
$kendo-treeview-loadmore-hover-bgColortransparenttransparent
Description
The background color of the hovered Load More button in the TreeView.
$kendo-treeview-loadmore-hover-textString$kendo-link-hover-textvar(--kendo-color-primary-hover, #0b5ed7)
Description
The text color of the hovered Load More button in the TreeView.
$kendo-treeview-loadmore-hover-borderNullnullnull
Description
The border color of the hovered Load More button in the TreeView.
$kendo-treeview-loadmore-focus-bgColortransparenttransparent
Description
The background color of the focused Load More button in the TreeView.
$kendo-treeview-loadmore-focus-textString$kendo-link-hover-textvar(--kendo-color-primary-hover, #0b5ed7)
Description
The text color of the focused Load More button in the TreeView.
$kendo-treeview-loadmore-focus-borderNullnullnull
Description
The border color of the focused Load More button in the TreeView.
$kendo-treeview-loadmore-focus-shadowList$kendo-treeview-item-focus-shadowinset 0 0 0 2px color-mix(in srgb, var(--kendo-color-on-app-surface, #212529) 15%, transparent)
Description
The box shadow of the focused Load More button in the TreeView.

In this article

Not finding the help you need?