I created the following module in an attempt to get rid of some of the boilerplate that's often associated with managing user preferences within an Electron-based desktop application:electron-preferencesIt provides you with an interface for saving / reading preference values, obviously. But it also provides a built-in visual interface that you can present to users. You don't have to muck around with CSS, HTML, etc... to modify it. The layout of the preferences window is defined via the API. If you click-through to the repo, you'll see a screenshot of the interface that users see.The library includes built-in support for a number of field types, including:TextDropdownFolder selectionGeneric message displayIf you're familiar with React, adding support for new field types is easy. PR's are welcome.
Submitted January 03, 2018 at 09:57PM by sotimting
No comments:
Post a Comment