GithubHelp home page GithubHelp logo

Comments (4)

qwertydude avatar qwertydude commented on June 16, 2024

Heya

Not sure if this happens to me, sorry. Where are the defaults you refer to? My understanding is you need to set defaults specifically for each metabox item, and for that I've not had any problems.

from redux-extensions.

franmastromarino avatar franmastromarino commented on June 16, 2024

Hi, thanks you for your comment

supposedly, the values โ€‹โ€‹of the options panel are taken as default values

and this are overwritten by Metaboxes only if are different

for example

Options Panel

the field the switch button with false as default

true/(false)

if i select true

(true)/false

Metaboxes

same button should true be when the button is displayed

(true)/false

but i get the default value

true/(false)

from redux-extensions.

qwertydude avatar qwertydude commented on June 16, 2024

My understanding is the options panels and the metabox fields are totally independent of each other.

If you had multiple fields of the same type in options panel with different default values.

For example, what if your options panel had the following checkboxes with these defaults:

Show name: true
Show company: true
Show email: false
Show website: true
Enable comments: false;

How would metaboxes know which to use as the default for checkboxes?

Unless I'm mistaken, there is no option to set global default values for any particular field type - whether options or metaboxes.

All fields do have the default value setting, so I'd just add that to your metabox fields.

Correct me if I'm misunderstanding your question!

from redux-extensions.

dovy avatar dovy commented on June 16, 2024

Resolved. Try the 1.2.0-beta just uploaded. ;)

from redux-extensions.

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.