Trilium Frontend API
    Preparing search index...

    Interface OptionsDataTree

    interface OptionsDataTree {
        dataTree?: boolean;
        dataTreeBranchElement?: string | boolean;
        dataTreeChildColumnCalcs?: boolean;
        dataTreeChildField?: string;
        dataTreeChildIndent?: number;
        dataTreeCollapseElement?: string | boolean | HTMLElement;
        dataTreeElementColumn?: string | boolean;
        dataTreeExpandElement?: string | boolean | HTMLElement;
        dataTreeFilter?: boolean;
        dataTreeSelectPropagate?: boolean;
        dataTreeSort?: boolean;
        dataTreeStartExpanded?:
            | boolean
            | boolean[]
            | ((row: RowComponent, level: number) => boolean);
    }

    Hierarchy (View Summary)

    Index

    Properties

    dataTree?: boolean

    To enable data trees in your table, set the dataTree property to true in your table constructor:

    dataTreeBranchElement?: string | boolean

    Show tree branch icon.

    dataTreeChildColumnCalcs?: boolean

    When you are using the dataTree option with your table, the column calculations will by default only use the data for the top level rows and will ignore any children. To include child rows in the column calculations set the dataTreeChildColumnCalcs option to true in the table constructor.

    dataTreeChildField?: string

    By default Tabulator will look for child rows in the _children field of a row data object. You can change this to look in a different field using the dataTreeChildField property in your table constructor:

    dataTreeChildIndent?: number

    Tree level indent in pixels

    dataTreeCollapseElement?: string | boolean | HTMLElement

    The toggle button that allows users to collapse and expand the column can be customized to meet your needs. There are two options, dataTreeExpandElement and dataTreeCollapseElement, that can be set to replace the default toggle elements with your own.

    Both options can take either an html string representing the contents of the toggle element

    dataTreeElementColumn?: string | boolean

    By default the toggle element will be inserted into the first column on the table. If you want the toggle element to be inserted in a different column you can pass the field name of the column to the dataTreeElementColumn setup option.

    dataTreeExpandElement?: string | boolean | HTMLElement

    The toggle button that allows users to expand the column.

    dataTreeFilter?: boolean
    dataTreeSelectPropagate?: boolean

    Propagate selection events from parent rows to children.

    dataTreeSort?: boolean
    dataTreeStartExpanded?:
        | boolean
        | boolean[]
        | ((row: RowComponent, level: number) => boolean)

    By default all nodes on the tree will start collapsed, you can customize the initial expansion state of the tree using the dataTreeStartExpanded option.* This option can take one of three possible value types, either a boolean to indicate whether all nodes should start expanded or collapsed: