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

Cannot find complete documentation for custom components

Open Susccy opened this issue 2 years ago • 2 comments

I'm currently trying to implement a file upload component with custom validation logic for the uploaded files. I'm extending the base file component class as explained in the official docs here.

However these docs don't really explain the base component's extendable methods outside of the vague and incomplete sample component and the very high-level CheckMatrix example (which confusingly exists in multiple different versions spread over the docs and GitHub). Even after reading all the comments on these components I still don't know what is required and what is optional to override to get a working component and I have absolutely no clue what method(s) I need to use for my requirements.

Am I missing something or is my only option to try and decipher the base component's scarcely documented source code?

Susccy avatar May 14 '22 16:05 Susccy

me too, The documentation is confusing to me

kylezhangjiawei avatar Jun 30 '22 06:06 kylezhangjiawei

@kylezhangjiawei your best bet is to study the source code which will quickly make you realize what huge mess of a library formio.js is.

Susccy avatar Jun 30 '22 11:06 Susccy

Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!

daneformio avatar Feb 07 '24 14:02 daneformio