When I have an array of objects, such as a customer has an array of addresses, is it possible while using the array table layout to omit, or select, which fields are included in that table view? For example if an address object has a field customer_id and address_id, how could those fields be suppressed?
I tried to use options.detail.elements and it would only revert the table view to a non-table grouping. Are there any options available to the table view?
Thanks!
Our table renderer is very primitive and therefore does not support filtering or ordering of columns. Of course you can always use a custom table renderer and implement it yourself.
I have not tried to extend the capability of your components before, so which two components are used for the table renderer? Is it the src/complex/TableToolbar.tsx for the grid, and src/layouts/MaterialLayoutRenderer.tsx for the non-matrix version of array object handling? I’m just looking at these for the first time right now, so it’s all kind of new to me. lol
Also, is there any existing docs available that covers pointers, tips, etc on how to work with these renderers when extending them, or designing new ones?
The easiest way to go would be to just copy the existing renderer (and all used components), modify it to your needs and register it with a higher priority than the existing one.
Hello.
I’ve been using jsonforms for a while now. I was wondering if you could elaborate further on this.
I copied the code from the MaterialArrayControlRenderer but when the render is being rendered i’m missing a few props.
This is the error im getting
Uncaught TypeError: props.translations is undefined
Are all of your JSON Forms dependencies on the same version? The versions need to match exactly, otherwise there might be problems with expectations between them.
Alternatively i would like to know if i can send the row data to a custom cell in some way.
To add some context i’ve made a custom cell to render text as SVG