Closed gfPedro closed 8 months ago
I would do all of this within a Module. See https://github.com/formio/formio.js/wiki/Modules.
With this, you can include the templates along with the extended class and it will register correctly.
We're currently addressing a backlog of GitHub issues, and as part of this effort, some inactive issues may be marked as closed. This isn't a dismissal, but a step toward more efficient tracking.
Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!
Hello,
I'm trying to extend the functionality of data grid component. I want to have a data grid and I would also like to be able to insert data from uploaded files.
I tried with this code and It gives errors because super is NestedComponent instead of DataGridComponent (error below).
How can I extend datagrid?
datagridComonent.ts:
customDatagrid:
Error:
I also tried importing this Components class:
This way it compiles and I get to see my component but it doesn't have any functionality and it doesn't show the options to change configuration os delete the component from the form.
I get to have those options available if I cmomment out the render method in my class with any of the two imports but still it doesn't show any funtionality from datagrid. i cannot drag and drop any other component into my custom component.