Remove a binding from an option This will stale the option.
Clears any errored options from this bag.
Options are marked as 'errored' to keep them out of the staleness loop. This allows option changes to result in re-evaluations, while preserving some way of marking these options as needing to be evaluated.
Retrieve the value of an option.
Return the metadata about an option; including it's type and name.
Sets the value of the given option. The part option is staled, and the new value is set. If the value is an EvalBinding, the change is silently rejected. Otherwise, the PartManager will set the bound global once it recieves the staleness.
Marks all options as stale.
This will cause the framework to re-evaluate all of them, which is useful for "Refresh Part". This ensures that all options are up to date and surfaces an escape hatch for the user if they know that the data is stale.
Bind an option to a global, or binding expression. When setting an eval binding, include the list of globals referenced in the expression. Setting a binding will stale it.
Generated using TypeDoc
Stores the values of part options, and allows parts to get and set part values.
OptionsBags are passed on render to parts, and are paired with the part.