class TreeProps
source · line 43public class TreeProps<T> public constructor(
public val state: TreeState<T>,
public val width: Double? = None,
public val height: Double? = None,
public val contentWidth: Double? = None,
public val virtualize: Boolean = true,
public val itemExtent: ItemExtent = ItemExtent.Fixed(28.0),
public val overscan: Double = 56.0,
public val sticky: TreeSticky = TreeSticky(),
public val indent: Double = 20.0,
public val showLines: Boolean = false,
public val showIcons: Boolean = false,
public val fullRow: Boolean = false,
public val directory: Boolean = false,
public val expandAction: TreeExpandAction = TreeExpandAction.Switcher,
public val enabled: Boolean = true,
public val scroll: ScrollState? = None,
public val horizontal: ScrollState? = None,
public val handle: TreeHandle? = None,
public val anchor: VirtualListAnchor = VirtualListAnchor.KeepVisible,
public val retention: ItemRetention = ItemRetention.Dispose,
public val scrollbars: ScrollbarVisibility = ScrollbarVisibility.Auto,
public val scrollbar: ScrollbarOptions = scrollbarOptions(),
public val scrollbarBehavior: ScrollbarBehavior = scrollbarBehavior(),
public val touchScroll: TouchScrollOptions = TouchScrollOptions(),
public val scrollPhysics: ScrollPhysicsOptions = ScrollPhysicsOptions(),
public val theme: ThemeSource? = None,
public val fonts: FontCollection? = None,
public val focus: FocusOptions = FocusOptions(),
public val semantics: ComponentSemantics = ComponentSemantics(),
public val title: ((TreeRow<T>) -> View)? = None,
public val icon: ((TreeRow<T>) -> View?)? = None,
public val switcher: ((TreeRow<T>) -> View)? = None,
public val onActivate: (TreeActivation<T>) -> Unit = { _ -> },
public val onDoubleClick: (TreeActivation<T>) -> Unit = { _ -> },
public val onContextMenu: (TreeActivation<T>) -> Unit = { _ -> },
public val showHeader: Boolean = true,
public val drag: TreeDrag<T>? = None,
public val loadingIcon: ((TreeRow<T>) -> View)? = None,
public val titleFocusable: Boolean = false
)
property enabled
source · line 58public val enabled: Boolean = true
get: public read-only
property fonts
source · line 70public val fonts: FontCollection? = None
get: public read-only
property scrollPhysics
source · line 68public val scrollPhysics: ScrollPhysicsOptions = ScrollPhysicsOptions()
get: public read-only
property state
source · line 44public val state: TreeState<T>
get: public read-only
property showLines
source · line 53public val showLines: Boolean = false
get: public read-only
property focus
source · line 71public val focus: FocusOptions = FocusOptions()
get: public read-only
property switcher
source · line 75public val switcher: ((TreeRow<T>) -> View)? = None
get: public read-only
type parameter T
source · line 43T
property indent
source · line 52public val indent: Double = 20.0
get: public read-only
property icon
source · line 74public val icon: ((TreeRow<T>) -> View?)? = None
get: public read-only
property sticky
source · line 51public val sticky: TreeSticky = TreeSticky()
get: public read-only
property showHeader
source · line 79public val showHeader: Boolean = true
get: public read-only
property contentWidth
source · line 47public val contentWidth: Double? = None
get: public read-only
property scrollbars
source · line 64public val scrollbars: ScrollbarVisibility = ScrollbarVisibility.Auto
get: public read-only
property fullRow
source · line 55public val fullRow: Boolean = false
get: public read-only
property itemExtent
source · line 49public val itemExtent: ItemExtent = ItemExtent.Fixed(28.0)
get: public read-only
property virtualize
source · line 48public val virtualize: Boolean = true
get: public read-only
property onDoubleClick
source · line 77public val onDoubleClick: (TreeActivation<T>) -> Unit = { _ -> }
get: public read-only
property horizontal
source · line 60public val horizontal: ScrollState? = None
get: public read-only
property titleFocusable
source · line 82public val titleFocusable: Boolean = false
get: public read-only
property width
source · line 45public val width: Double? = None
get: public read-only
property overscan
source · line 50public val overscan: Double = 56.0
get: public read-only
property touchScroll
source · line 67public val touchScroll: TouchScrollOptions = TouchScrollOptions()
get: public read-only
property scrollbar
source · line 65public val scrollbar: ScrollbarOptions = scrollbarOptions()
get: public read-only
property semantics
source · line 72public val semantics: ComponentSemantics = ComponentSemantics()
get: public read-only
property theme
source · line 69public val theme: ThemeSource? = None
get: public read-only
property anchor
source · line 62public val anchor: VirtualListAnchor = VirtualListAnchor.KeepVisible
get: public read-only
property expandAction
source · line 57public val expandAction: TreeExpandAction = TreeExpandAction.Switcher
get: public read-only
property handle
source · line 61public val handle: TreeHandle? = None
get: public read-only
constructor constructor
source · line 43constructor(public val state: TreeState<T>, public val width: Double? = None, public val height: Double? = None, public val contentWidth: Double? = None, public val virtualize: Boolean = true, public val itemExtent: ItemExtent = ItemExtent.Fixed(28.0), public val overscan: Double = 56.0, public val sticky: TreeSticky = TreeSticky(), public val indent: Double = 20.0, public val showLines: Boolean = false, public val showIcons: Boolean = false, public val fullRow: Boolean = false, public val directory: Boolean = false, public val expandAction: TreeExpandAction = TreeExpandAction.Switcher, public val enabled: Boolean = true, public val scroll: ScrollState? = None, public val horizontal: ScrollState? = None, public val handle: TreeHandle? = None, public val anchor: VirtualListAnchor = VirtualListAnchor.KeepVisible, public val retention: ItemRetention = ItemRetention.Dispose, public val scrollbars: ScrollbarVisibility = ScrollbarVisibility.Auto, public val scrollbar: ScrollbarOptions = scrollbarOptions(), public val scrollbarBehavior: ScrollbarBehavior = scrollbarBehavior(), public val touchScroll: TouchScrollOptions = TouchScrollOptions(), public val scrollPhysics: ScrollPhysicsOptions = ScrollPhysicsOptions(), public val theme: ThemeSource? = None, public val fonts: FontCollection? = None, public val focus: FocusOptions = FocusOptions(), public val semantics: ComponentSemantics = ComponentSemantics(), public val title: ((TreeRow<T>) -> View)? = None, public val icon: ((TreeRow<T>) -> View?)? = None, public val switcher: ((TreeRow<T>) -> View)? = None, public val onActivate: (TreeActivation<T>) -> Unit = { _ -> }, public val onDoubleClick: (TreeActivation<T>) -> Unit = { _ -> }, public val onContextMenu: (TreeActivation<T>) -> Unit = { _ -> }, public val showHeader: Boolean = true, public val drag: TreeDrag<T>? = None, public val loadingIcon: ((TreeRow<T>) -> View)? = None, public val titleFocusable: Boolean = false)
parameter overscan
source · line 50public val overscan: Double = 56.0
parameter handle
source · line 61public val handle: TreeHandle? = None
parameter expandAction
source · line 57public val expandAction: TreeExpandAction = TreeExpandAction.Switcher
parameter fonts
source · line 70public val fonts: FontCollection? = None
parameter touchScroll
source · line 67public val touchScroll: TouchScrollOptions = TouchScrollOptions()
parameter anchor
source · line 62public val anchor: VirtualListAnchor = VirtualListAnchor.KeepVisible
parameter scrollbars
source · line 64public val scrollbars: ScrollbarVisibility = ScrollbarVisibility.Auto
parameter scrollbarBehavior
source · line 66public val scrollbarBehavior: ScrollbarBehavior = scrollbarBehavior()
parameter itemExtent
source · line 49public val itemExtent: ItemExtent = ItemExtent.Fixed(28.0)
parameter semantics
source · line 72public val semantics: ComponentSemantics = ComponentSemantics()
parameter height
source · line 46public val height: Double? = None
parameter horizontal
source · line 60public val horizontal: ScrollState? = None
parameter icon
source · line 74public val icon: ((TreeRow<T>) -> View?)? = None
parameter showLines
source · line 53public val showLines: Boolean = false
parameter onDoubleClick
source · line 77public val onDoubleClick: (TreeActivation<T>) -> Unit = { _ -> }
parameter enabled
source · line 58public val enabled: Boolean = true
parameter onActivate
source · line 76public val onActivate: (TreeActivation<T>) -> Unit = { _ -> }
parameter focus
source · line 71public val focus: FocusOptions = FocusOptions()
parameter loadingIcon
source · line 81public val loadingIcon: ((TreeRow<T>) -> View)? = None
parameter directory
source · line 56public val directory: Boolean = false
parameter onContextMenu
source · line 78public val onContextMenu: (TreeActivation<T>) -> Unit = { _ -> }
parameter retention
source · line 63public val retention: ItemRetention = ItemRetention.Dispose
parameter state
source · line 44public val state: TreeState<T>
parameter theme
source · line 69public val theme: ThemeSource? = None
parameter showHeader
source · line 79public val showHeader: Boolean = true
parameter sticky
source · line 51public val sticky: TreeSticky = TreeSticky()
parameter switcher
source · line 75public val switcher: ((TreeRow<T>) -> View)? = None
parameter title
source · line 73public val title: ((TreeRow<T>) -> View)? = None
parameter scrollPhysics
source · line 68public val scrollPhysics: ScrollPhysicsOptions = ScrollPhysicsOptions()
parameter titleFocusable
source · line 82public val titleFocusable: Boolean = false
parameter width
source · line 45public val width: Double? = None
parameter virtualize
source · line 48public val virtualize: Boolean = true
parameter indent
source · line 52public val indent: Double = 20.0
parameter scrollbar
source · line 65public val scrollbar: ScrollbarOptions = scrollbarOptions()
parameter drag
source · line 80public val drag: TreeDrag<T>? = None
parameter fullRow
source · line 55public val fullRow: Boolean = false
parameter scroll
source · line 59public val scroll: ScrollState? = None
parameter showIcons
source · line 54public val showIcons: Boolean = false
parameter contentWidth
source · line 47public val contentWidth: Double? = None
property drag
source · line 80public val drag: TreeDrag<T>? = None
get: public read-only
property scrollbarBehavior
source · line 66public val scrollbarBehavior: ScrollbarBehavior = scrollbarBehavior()
get: public read-only
property scroll
source · line 59public val scroll: ScrollState? = None
get: public read-only
property height
source · line 46public val height: Double? = None
get: public read-only
property onActivate
source · line 76public val onActivate: (TreeActivation<T>) -> Unit = { _ -> }
get: public read-only
property directory
source · line 56public val directory: Boolean = false
get: public read-only
property showIcons
source · line 54public val showIcons: Boolean = false
get: public read-only
property retention
source · line 63public val retention: ItemRetention = ItemRetention.Dispose
get: public read-only
property loadingIcon
source · line 81public val loadingIcon: ((TreeRow<T>) -> View)? = None
get: public read-only
property onContextMenu
source · line 78public val onContextMenu: (TreeActivation<T>) -> Unit = { _ -> }
get: public read-only
property title
source · line 73public val title: ((TreeRow<T>) -> View)? = None
get: public read-only