Closed jgunstone closed 10 months ago
instead of instantiating with schema
use AutoArray (**kwargs)
and ensure that the class has the correct traits
i.e.
properties
traititems
traitmerged to main in this PR https://github.com/maxfordham/ipyautoui/pull/199
currently everything must be instantiated with
schema
which doesn't make much sense... e.g.AutoArray
must be an array:EditGrid
must be an arrayAutoObject
must be an object .. etc. so they should be instantiated with what makes sense for the them - ie..AutoArray
- itemsEditGrid
- itemsAutoObject
- propertiesAutoUi is the top level - in doesn't care what it generates, so this should still be instantiated with schema. probably makes sense to add a
.from_schema
method to the other objects to ease transition...