Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjustable attributes #69

Open
hdoupe opened this issue Aug 23, 2019 · 0 comments
Open

Adjustable attributes #69

hdoupe opened this issue Aug 23, 2019 · 0 comments

Comments

@hdoupe
Copy link
Collaborator

hdoupe commented Aug 23, 2019

Goal: Be able to update select attributes on defaults JSON object so that projects may update the value of attributes like the "indexed."

Syntax:

{
    "schema": {
        "additional_members": {
            "indexed": {"type": "bool", "adjustable": true}
        }
    },
    "myparam": {
        "title": "My Param",
        "description": "My demo parameter.",
        "type": "float",
        "value": 10.0,
        "indexed": true
    }
}
params.adjust({
    "myparam": [{"indexed": False}]
})

Effect: Updates value of "indexed" in "myparam" in params._data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant