@serenity-is/corelib / SlickFormatting / treeToggle
Function: treeToggle()
treeToggle(
getView,getId,formatter):Format
Defined in: src/ui/helpers/slickformatting.tsx:61
Returns a formatter that renders a tree toggle (expand/collapse) control with indentation based on the item's hierarchy.
Parameters
getView
() => IRemoteView<any>
A function that returns the remote view.
getId
(x) => any
A function that returns the id of an item.
formatter
The formatter used to render the item content.
Returns
The tree toggle formatter.