As far as I’ve found, nested panel options do not like to have default values. Can someone verify this on their end, and let me know if they obtain the same result, or if I’m putting in the default values incorrectly? Thanks!
Ref: Panel options subcategories
Code:
export const plugin = new PanelPlugin<PsyOptions>(PsyPanel).setPanelOptions((builder, context) => {
return builder.addTextInput({
name: 'Not Nested',
path: 'a',
defaultValue: 'Hello!'
})
.addNestedOptions({
path: 'nestor',
build(subbuilder, subcontext) {
return subbuilder.addTextInput({
name: 'Nested',
path: 'b',
defaultValue: 'World!',
});
},
});
});
Result: