Skip to content

How to get tree indent on a column besides select column? #83

Answered by rwieruch
aubsparrow asked this question in Q&A
Discussion options

You must be logged in to vote

Does it look like this?

() => {
  const data = { nodes };

  const select = useRowSelect(data, {}, {});

  const tree = useTree(
    data,
    {},
    {
      treeYLevel: 1,
    }
  );

  return (
    <Table
      data={data}
      select={select}
      tree={tree}
    >
      {(tableList) => (
        <>
          <Header>
            <HeaderRow>
              <HeaderCellSelect />
              <HeaderCell>Task</HeaderCell>
              <HeaderCell>Deadline</HeaderCell>
              <HeaderCell>Type</HeaderCell>
              <HeaderCell>Complete</HeaderCell>
              <HeaderCell>Tasks</HeaderCell>
            </HeaderRow>
          </Header>

          <Body>
            {tableLi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aubsparrow
Comment options

Answer selected by aubsparrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants