Comments (6)
Didn't even think to expand this to the other setting types, will do.
from nova-settings-tool.
Just added this! Set 'default' => true
for the Toggle settings you want on by default.
from nova-settings-tool.
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.
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.
from nova-settings-tool.
@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)
- Textarea type not working HOT 4
- How to get the values? HOT 1
- Support for standard Nova fields HOT 5
- Single file input HOT 2
- Error After Installing HOT 4
- settings input of type number are not working HOT 3
- Error after installation (Call to a member function authorize() on string) HOT 2
- Frontend string translations HOT 3
- Hide from navigation HOT 7
- Can't add logs on change settings HOT 1
- Fields are not added to the admin panel. HOT 7
- Not compatible with Nova 4.0 HOT 5
- Do this module support settings per user? HOT 2
- Resource page does not show after visit setting page HOT 2
- TypeError: Cannot read properties of null (reading 'split') HOT 6
- Show/hide fields based on permissions? HOT 1
- Error authorizing tool using gate HOT 5
- Insert middleware Authenticate::class HOT 8
- Please support boolean-group-field HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nova-settings-tool.