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

Access to file chooser's text field #260

Closed
metaphore opened this issue Jun 2, 2017 · 2 comments
Closed

Access to file chooser's text field #260

metaphore opened this issue Jun 2, 2017 · 2 comments

Comments

@metaphore
Copy link
Contributor

In save mode, I have a file name to suggest to a user, but it appears like I have no any way to do this. FileChooser.setSelectedFiles(FileHandle...) does provide option to select specific file programmatically, but it depends on displayed file views and drops files that are not visible right now. I guess it wouldn't be a big deal to simply provide setter for the file name text field. What do you say?

@kotcrab
Copy link
Owner

kotcrab commented Jun 5, 2017

I can't provide direct access to it because after adding to stage, file chooser refreshes itself which only preserves actual selected files and not field text.

I added a method that let's you set default file name which will be used when chooser is added to stage and no other files was already selected.

@metaphore
Copy link
Contributor Author

Yep, this should solve the case. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants