Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] Custom component in Typescript #138

Open
frances-datacom opened this issue Jul 3, 2024 · 2 comments
Open

[QUESTION] Custom component in Typescript #138

frances-datacom opened this issue Jul 3, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@frances-datacom
Copy link

Hi,

My apologies, I know that I sound like a broken record at the moment. Typescript is giving me grief! Please see this link: https://codesandbox.io/p/devbox/blissful-hill-7f9qfr

Here, I have a custom component called ImageDraw. It shows up in the sidebar, and can be dragged/dropped onto the FormBuilder. However, the edit dialog and the UI on the FormBuilder don't render properly. It seems that it is not picking up the builderInfo etc from the component. I am missing something here, and I don't know what.

Any help would be greatly appreciated.

image

image

@frances-datacom frances-datacom added the question Further information is requested label Jul 3, 2024
@Romakita Romakita closed this as completed Jul 3, 2024
@Romakita Romakita reopened this Jul 3, 2024
@tsedio tsedio deleted a comment from github-actions bot Jul 3, 2024
@Romakita
Copy link
Contributor

Romakita commented Jul 3, 2024

Hi @frances-datacom

I think your issue isn't related to typescript itself ;). Js example for formio is the same for TypeScript (like is it for your previous issue), so don't complain about TypeScript :p

I'm not able to help you. You issue seems to be directly related to Formio.io API and how you use it to register your custom component. If you have the original formio.js code example, maybe I can help you. But for specific question like that, it should be better to ask Formio team. @tsed/react-formio is just a react wrapper around the formio.js, all options given to FormBuilder component are directly given to his formio.js equivalent.

See you

@frances-datacom
Copy link
Author

@Romakita Thank you for your help. I was thinking that this was the appropriate place since this library adds in Typescript compatibility for formio/react :) I'll ask my question on formio.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants