DetailsList - dynamically add and remove columns #305
-
Hi all Is it possible to dynamically add and remove columns to and from the DetailsList? I would like to hide/remove columns on small screens. I'm thinking something like
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You can do that, or at least I have my plan to do the same thing. If(Parent.Size >= ScreenSize.Medium; |
Beta Was this translation helpful? Give feedback.
-
Thanks for the suggestion @MizVik. I figured out that by setting the # Setting ColName to an empty string hides the column
ColName: If(
'Home Screen'.Size >= ScreenSize.Medium,
"InspectionDateTime",
""
) I think it would be neater to have an explicit column property called |
Beta Was this translation helpful? Give feedback.
-
Created feature request in below issue: |
Beta Was this translation helpful? Give feedback.
Thanks for the suggestion @MizVik.
I figured out that by setting the
ColVisible
to a blank string the column is excluded and lets me show and hide columns dynamically.I think it would be neater to have an explicit column property called
ColVisible
. I'll create an issue for an enhancement.