Skip to content

[EuiDataGrid] Control isExpandable at the cell level #2793

Closed

Description

@pickypg

I am building a calendar using the DataGrid and I have run into the need to allow a small popover form, but only if the calendar day has stuff in it. For example, imagine that a manager wants to override a holiday to mark an engineer as working, it obviously is an unnecessary step if there is no holiday on that day.

image

I'd like an enhancement where, before it attempts to render the cell with isDetails set to true, (or the popover version), it would instead check if it even should. The easiest approach seems to be making isExpandable a callback | boolean | undefined, which probably helps it to avoid invoking a function call for all cells anyway. For the best impact, this function would need be passed the rowIndex and columnId just like the render cell function.

Activity

  1. pickypg commented on Jan 25, 2020

    @pickypg
    MemberAuthor
  2. pickypg commented on Jan 25, 2020

    @pickypg
    MemberAuthor

    I'd like an enhancement where, before it attempts to render the cell with isDetails set to true, (or the popover version), it would instead check if it even should.

    Before it even shows the expand button that is.

  3. changed the title [-]EuiDataGrid control isExpandable at the cell level[/-] [+][EuiDataGrid] Control isExpandable at the cell level[/+] on Sep 20, 2020
  4. github-actions commented on Mar 20, 2021

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  5. added
    stale-issue
    on Mar 20, 2021
  6. pickypg commented on Mar 20, 2021

    @pickypg
    MemberAuthor

    This still seems useful.

  7. removed
    stale-issue
    on Mar 30, 2021
  8. github-actions commented on Sep 26, 2021

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  9. added
    stale-issue
    on Sep 26, 2021
  10. github-actions commented on Oct 3, 2021

    @github-actions

    ❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error.

  11. added
    stale-issue-closed
    on Oct 3, 2021
  12. cee-chen commented on Oct 4, 2021

    @cee-chen
    Contributor

    @pickypg 👋 Heyyy!! I've recently joined the EUI team and am helping out with EuiDataGrid - I hadn't seen this issue until it closed just now. Just curious, is it still useful to the calendar you're building? No promises, but I'd be interested in picking this up at some point if so :)

  13. pickypg commented on Oct 4, 2021

    @pickypg
    MemberAuthor

    Hey @constancecchen, it would! However, we currently use the EuiTable in place of the datagrid. We would be open to checking it out again, but I think this feature would be useful regardless.

  14. cee-chen commented on Oct 4, 2021

    @cee-chen
    Contributor

    Cool cool, great to know! As a heads up I'm currently prioritizing issues/features that teams need or are requesting in order to roll out features (currently some from Discover and Security), so it might be a while for this - but if you decide to switch over to EuiDataGrid or that this would be a blocker for doing so, definitely let me know and feel free to re-open this issue whenever!

  15. robert-seymour-numerated commented on Oct 28, 2021

    @robert-seymour-numerated

    @constancecchen Hello! This feature just came up in our teams standup today. Would be really useful to to control isExpandable on a cell level. Consider a simple id table: id=1 should not be expandable. but id=12312312313 would be nice.

  16. cee-chen commented on Oct 28, 2021

    @cee-chen
    Contributor

    Nice! I'll re-open as this is a recent re-request, but to level-set expectations, we've got a whole lot on the datagrid backlog so it might be a while yet before this gets looked at!

  17. removed
    stale-issue
    stale-issue-closed
    on Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions