react icon indicating copy to clipboard operation
react copied to clipboard

Creating FormIO custom component to use HandsOnTable spread sheet in form builder using React JS

Open tmohanbtech opened this issue 6 years ago • 4 comments

Hi, I am new to Form IO and need to create a custom component using HandsOnTable Spreadsheet which will be available in my form builder , so that user can able to use Spredsheet in the forms. It could be better some one can help me to create new component as Spreadsheet using HandsOnTable and integrate in Form IO builder using React js. Thanks

tmohanbtech avatar Sep 17 '19 06:09 tmohanbtech

@tmohanbtech, here is an example of a custom component in React: https://github.com/formio/react-app-starterkit/tree/3.x/src/components

aiwebb avatar Sep 17 '19 14:09 aiwebb

Thanks for your answer @aiwebb. I have gone through the above link but I need to construct new custom component using third party element i.e HandsOnTable Spreadsheet. Is there any way that we can directly render another third party component in FormIO components

tmohanbtech avatar Sep 18 '19 05:09 tmohanbtech

@tmohanbtech, you can set this.element in your build() function to a dynamically created element that is then wrapped by HandsOnTable as a new table instance.

aiwebb avatar Sep 18 '19 14:09 aiwebb

The example in the react-app-starterkit is pretty old - using formio 3.x - is there nothing newer? Edit: I found this which I could get working, though it is related to a bug as described in this ticket.

Since what I'm looking to do is purely display that bug isn't really relevant to me.

simonv3 avatar Sep 15 '21 22:09 simonv3

I am closing the issue as it was created too long ago and there are no new comments here. I hope it was resolved. If not, please reopen it. Thanks!

TanyaGashtold avatar Aug 31 '23 13:08 TanyaGashtold