feat: hide columns cell override - #185
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds the capability to hide specific columns in the iModel grid's "cells" view mode. The feature enables developers to selectively hide columns like name, description, created date, or options column based on specific requirements.
- Introduced an enum to standardize column identifiers for better type safety
- Added a new
hideColumnsproperty to the cell overrides configuration - Updated table configuration to filter out hidden columns dynamically
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/modules/imodel-browser/src/types.ts | Added IModelCellColumn enum and hideColumns property to IModelCellOverrides |
| packages/modules/imodel-browser/src/containers/iModelGrid/useIModelTableConfig.tsx | Updated column IDs to use enum values and implemented column filtering logic |
| packages/apps/storybook/src/imodel-browser/IModelGrid.stories.tsx | Added example usage of hideColumns feature in storybook |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Can you also add this option to ITwinGrid? Since I can see it being useful for both iModel and iTwin table |
@DanishMehmood-bit Good idea, I'll do that! |
@DanishMehmood-bit Done! |
a0a9c9a to
e3c65ab
Compare
…lumns_2025-11-05-14-20.json Co-authored-by: Arun George <11051042+aruniverse@users.noreply.github.com>
We have the requirement to hide a column in a specific scenario. I've added the possibility to hide columns while in
cellsview for theiModelGrid.I've added an enum that represents each columns in
cellview.I've also updated the storybook so that we can play with that option.