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

Implement types for editgrid component #35

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

sergei-maertens
Copy link
Member

Partly closes #2

This one is a bit special because we're modelling the current situation
and some clean up is probably in order, notably:

* validation tab doesn't support error messages
* validation tab doesn't support validator plugins
* button texts are not wired up to be translatable (
  fixed in this type definition at least)
* missing controls to include field in PDF/email/confirmation
  page etc., so now it's only hidden if all child components
  are hidden.

The value type can also not be defined statically, because this
is a container component that depends on the runtime child
components, which in turn dictate the value type of a repeating
group itself.
@sergei-maertens sergei-maertens force-pushed the feature/2-editgrid-type branch from 03f8b2a to 0d81964 Compare December 4, 2023 14:39
/**
* Nested components inside the group.
*/
components: AnyComponentSchema[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it also be EditGridComponentSchema?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I don't see why it couldn't :(

@sergei-maertens sergei-maertens merged commit 6919da9 into main Dec 7, 2023
6 checks passed
@sergei-maertens sergei-maertens deleted the feature/2-editgrid-type branch December 7, 2023 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export Formio Typescript types
2 participants