formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

Need Help - Custom Component

Open 152hq opened this issue 8 years ago • 1 comments

Hi,

We are trying to build custom components that will meet our app needs. We could not find a way to call the build method (CheckMatrixComponent.prototype.build) explicitly as each time the call occurs, the DOM remains the same. Can you please help provide a better solution where build can be called on custom triggers.

Thanks

152hq avatar Nov 16 '18 01:11 152hq

Hello,

Jeriah here from the support team.

The build method can be explicitly called by first targeting that component and then calling it like this.

var checkMatrix = instance.getComponent('checkmatrix'); checkMatrix.build();

Hope this helped you.

Thanks!

jeriah-formio avatar Nov 16 '18 19:11 jeriah-formio