Code Monkey home page Code Monkey logo

Comments (6)

bakerkretzmar avatar bakerkretzmar commented on May 30, 2024 1

Didn't even think to expand this to the other setting types, will do.

from nova-settings-tool.

bakerkretzmar avatar bakerkretzmar commented on May 30, 2024

Just added this! Set 'default' => true for the Toggle settings you want on by default.

from nova-settings-tool.

michapixel avatar michapixel commented on May 30, 2024

Very nice!
The toggle works as promised, but textfields/Textareas do not (didn't try checkboxes and radios or selects/options),
unless there is another way like what i did:

default -> nada
value -> nada
text -> nada
html -> nada

from nova-settings-tool.

bakerkretzmar avatar bakerkretzmar commented on May 30, 2024

I'm rethinking this actually, since this package's goal isn't to handle the settings themselves in your app, just make a nice gui for them in Nova. With the toggle for example, setting default => true actually doesn't affect the value of the setting in the JSON, only what gets displayed on the tool. This actually strikes me as pretty confusing.

@michapixel thoughts?

from nova-settings-tool.

michapixel avatar michapixel commented on May 30, 2024

from nova-settings-tool.

bakerkretzmar avatar bakerkretzmar commented on May 30, 2024

@michapixel thanks for your input. I'm going to revert this in v1, I think it's safer to keep the presentation of the settings and their values firmly separate, if a setting needs to be 'on' or some other value by default, you should configure that where you're consuming the setting value or just manually set it to your desired default when you add it.

from nova-settings-tool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.