Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions packages/iris-grid/src/IrisGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,8 @@ class IrisGrid extends Component<IrisGridProps, IrisGridState> {
(mouseHandlers: MouseHandlersProp): readonly GridMouseHandler[] =>
[...mouseHandlers, ...this.mouseHandlers].map(handler =>
typeof handler === 'function' ? handler(this) : handler
)
),
{ max: 1 }
);

getCachedRenderer = memoize(
Expand Down Expand Up @@ -2531,11 +2532,18 @@ class IrisGrid extends Component<IrisGridProps, IrisGridState> {
});
}

toggleExpandColumn(modelIndex: ModelIndex): void {
toggleExpandColumn(
modelIndex: ModelIndex,
expandDescendants?: boolean
): void {
log.debug2('Toggle expand column', modelIndex);
const { model } = this.props;
if (isExpandableColumnGridModel(model) && model.hasExpandableColumns) {
model.setColumnExpanded(modelIndex, !model.isColumnExpanded(modelIndex));
model.setColumnExpanded(
modelIndex,
!model.isColumnExpanded(modelIndex),
expandDescendants
);
}
}

Expand Down
Loading