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

Expose SetFilterer to set filterer function of FileButton's FilePicker #1312

Open
bqback opened this issue Nov 15, 2024 · 1 comment
Open
Assignees
Labels
approved This feature request will be implemented enhancement A new feature request
Milestone

Comments

@bqback
Copy link

bqback commented Nov 15, 2024

Describe the feature

FileButton only allows setting filenames and extensions, which merely offers highlighting items that match the criteria. This offers no actual value beyond highlighting and (at least on Windows) fundamentally differs from how the "Extensions" field works in a regular (OS level) file picker.

FilePIcker supports providing a filter function that does what "Extensions" should do, but apparently it's not possible to bind to FilePIcker because it doesn't have a WidgetValue, and the internal filepicker of a FileButton isn't exposed anywhere at all.

Relevant code

No response

@bqback bqback added the enhancement A new feature request label Nov 15, 2024
@kkoreilly
Copy link
Member

kkoreilly commented Nov 15, 2024

Thank you for reporting this. We will expose the filter function on FileButton and make Extensions filter items instead of just highlighting them.

@kkoreilly kkoreilly added the approved This feature request will be implemented label Nov 15, 2024
@kkoreilly kkoreilly added this to the v0.4 milestone Nov 15, 2024
@kkoreilly kkoreilly moved this to Todo in Cogent Roadmap Nov 18, 2024
@kkoreilly kkoreilly self-assigned this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This feature request will be implemented enhancement A new feature request
Projects
Status: Todo
Development

No branches or pull requests

2 participants