Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListView Control - have hidden column so it is searchable but not visible #448

Open
mikezimm opened this issue Dec 19, 2019 · 3 comments
Open
Labels
Needs: Discussion 🙋 type:enhancement New feature or enhancement of existing capability

Comments

@mikezimm
Copy link
Contributor

@estruyf ,

Category

[ x ] Enhancement

[ ] Bug

[ x ] Question

Version

"@pnp/spfx-controls-react": "1.16.0"

Expected / Desired Behavior / Question

I have fields that I want to be searchable but maybe not visible (in the case of smaller screen size).

It would be great to have a boolean property that I can pass in the IViewField to make it hidden but searchable.

Maybe there is with the render property but I have no clue how to do that.

Thanks!

Observed Behavior

I tried setting these properties to something that would give the effect
minWidth=0, maxWidth=0, sorting=false, isResizable=false, displayName=""

But when I do, I see both a full size version of the column as well as a small version on the far right.
Also, when I remove the displayName, it wants to put the name in it's place. Maybe that is by design though.

Steps to Reproduce

export const  timeSpan : IViewField = {
  name: "listTimeSpan",
  displayName: "",
  //linkPropertyName: "c",
  isResizable: false,
  sorting: false,
  minWidth: 0,
  maxWidth: 0
}

With normal visible settings

image

With settings I listed above

image

@ghost
Copy link

ghost commented Dec 19, 2019

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@ghost ghost added the Needs: Triage 🔍 label Dec 19, 2019
@tkerkman
Copy link

This would be a great enhancement to have. Hopefully, this request gets some movement. Thank you

@michaelmaillot
Copy link
Collaborator

Hi @mikezimm,

Indeed, latest version doesn't allow to both hide a column and filter on it.

From my perspective, I see two features to add to IViewField:

  • isHidden: to indicate if a viewField should be displayed or not
  • IsSearchable: to indicate if a viewField should be searchable or not

What do you think?

@joelfmrodrigues joelfmrodrigues added Needs: Discussion 🙋 type:enhancement New feature or enhancement of existing capability and removed Needs: Triage 🔍 labels Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Discussion 🙋 type:enhancement New feature or enhancement of existing capability
Projects
None yet
Development

No branches or pull requests

4 participants