Skip to content

Provide more information on rows during row rendering #74

Closed

Description

@roblotter

InfiniteTableRowInfo can have different object shape depending on the presence or absence of grouping.

You can use dataSourceHasGrouping: boolean as a discriminator to determine the shape of the object, to know if the dataSource had grouping or not. Furthermore, for when the dataSource has grouping, you can use isGroupRow: boolean to discriminate between group rows vs normal rows.

Now rowInfo has the following props:

  • childrenAvailable - if at least some of the children (for group rows with lazy batching) are available
  • childrenLoading - if some children are loading
  • selfLoaded - if the current row has been loaded (useful for bathing, when scrolling to the current row, when it's lazily fetched)
  • dataSourceHasGrouping
  • directChildrenCount - The count of the direct children of the current group. Direct children can be either normal rows or groups.
  • directChildrenLoadedCount
  • collapsedChildrenCount - The count of all leaf nodes (normal rows) inside the group that are not being visible due to collapsing (either the current row is collapsed or any of its children)
  • deepRowInfoArray - This array contains all the (uncollapsed, so visible) row infos under this group, at any level of nesting, in the order in which they are visible in the table
  • groupData - The array of all leaf nodes (normal rows) that are inside this group.
  • collapsed

Activity

  1. added
    enhancement
    on May 3, 2022
  2. added this to the 0.3.0 milestone on May 3, 2022
  3. self-assigned this
    on May 3, 2022
  4. roblotter commented on May 3, 2022

    @roblotter
    ContributorAuthor

    Shipped in 0.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions