Skip to content

draft: allow control-wrapper to be overridden by provided component #2443

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yaffol
Copy link
Contributor

@yaffol yaffol commented Apr 24, 2025

This draft PR shows an initial method of allowing the control-wrappper component to be overridden, by inject(...)ing the wrapper component from the application that consumes JSON Forms.

My use case for this is that I have a custom rendering layout which moves the field label to the left of the field and I also show a customised information box in some cases above the field.

This allows me to use the stock renderers but perform this customisation, so I don't have to update custom renderers for every field type where I only want to make relatively minor wrapper layout changes.

Copy link

netlify bot commented Apr 24, 2025

Deploy Preview for jsonforms-examples ready!

Name Link
🔨 Latest commit f9a084f
🔍 Latest deploy log https://app.netlify.com/sites/jsonforms-examples/deploys/680a5ff2292ac800074bfa83
😎 Deploy Preview https://deploy-preview-2443--jsonforms-examples.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@coveralls
Copy link

Coverage Status

coverage: 82.517%. remained the same
when pulling f9a084f on yaffol:injectable-control-wrapper
into 5218263 on eclipsesource:master.

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.

2 participants