question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to set the description for nwdirectory in "Browse for Folder" dialog

See original GitHub issue

I am using nwdirectory attribute to an input=“file” field in order to trigger the “Browse for Folder” dialog. However the description on the dialog is misleading, I don’t want to “upload” a folder, but rather choose a folder. It can also give a wrong impression to the user, that you are actually going to upload his, often private, files somewhere.

browsefolder

Could we have an extra attribute nwdirectorydesc that would allow us to set that description? Like so,

<input id="folder-open-dialog" type="file" style="display: none;" nwdirectory nwworkingdir="" nwdirectorydesc="Please select a folder" role="hidden" />

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rogerwangcommented, Jan 3, 2018

Just fixed this in nw28 branch. Added nwdirectorydesc as proposed and changed the default string to Select Folder. It will be available in the next 0.28.0-rc1 build.

0reactions
octachromecommented, Jan 29, 2018

@rogerwang I have updated to 0.28 and this works perfectly now. Many thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changes to DOM - NW.js Documentation
Set the description of the title in the file dialog for nwdirectory . Default is Select Folder . Attribute: nwsaveas. nwsaveas will open...
Read more >
Nsure Identity Manager Drivers - Installation
In the Select Drivers for Engine Install dialog box, select only LDAP, then click Next. ... Expand the nw directory, select product.ni, then...
Read more >
javascript - Electron - Open Folder Dialog - Stack Overflow
To create a dialog box you will have to tell your main process to do so by sending a message from renderer process....
Read more >
File Dialogs - NW.js Documentation - Read the Docs
This attribute enables users to select a directory in “Select folder” dialog. <input type="file" webkitdirectory />. The fileinput.value ...
Read more >
NetIQ SecureLogin Citrix and Terminal Services Guide
2 Extend the corporate directory schema. 3 Install SecureLogin on the Citrix and terminal services server. 1.4 Overview of Citrix Application Deployment.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found