Closed emiloberg closed 8 years ago
Yep. Just replace properties
with fields
:
options: {
fields: {
anObject: {
fields: { // <= here
aBool: { label: 'hi' },
aString: { help: 'This is a string' }
}
}
}
}
Gaah! Could have sworn that I tried that, but I guess I missed it amongst field, properties, props and the rest of the list ;)
Cheers!
In case anyone else finds this I was having a problem getting this to work. If you have a field that is a type t.list() that uses another type with multiple fields. It needs to be nested inside an item
element.
The above example should be changed to:
options: {
fields: {
anObject: {
item: {
fields: {
aBool: { label: 'hi' },
aString: { help: 'This is a string' }
}
}
}
}
}
Hi,
I've a JSON Schema (transformed by tcomb-json-schema which looks a bit like this:
Is there any way I can reach the
firstBool
andsecondBool
in myoptions
, e.g. an options object looking a bit like this: