Skip to content

Adjustable attributes #69

@hdoupe

Description

@hdoupe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions