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

provide button renderer #80

Open
kchobantonov opened this issue Oct 3, 2022 · 2 comments
Open

provide button renderer #80

kchobantonov opened this issue Oct 3, 2022 · 2 comments

Comments

@kchobantonov
Copy link
Contributor

Provide button renders that can execute javascript or a named action.

Useful when we want to position the button inside the jsonforms or when using the proposed new webcomponent

@sdirix
Copy link
Member

sdirix commented Oct 4, 2022

I would consider this a perfect use case for a custom renderer as the user needs to bind some functionality against the button which we otherwise have to generically support in some fashion.

@kchobantonov
Copy link
Contributor Author

it is possible to provide that in general way here is an example if you are interested https://github.com/kchobantonov/camunda-jsonforms-plugin/blob/master/plugin-ui/packages/common/src/renderers/ButtonRenderer.vue - it has a little bit more that what is needed but primary look for the injected actions.

This is useful not only when you have webcomponent and interaction with the form is limited - e.g. if you want to change the form language not only to listen for errors and data changes but also in the case when you integrate the forms with the Vue since the button can be rendered in any place in the forms.

The button is just a named action that you call with some context that's all nothing special really.

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

No branches or pull requests

2 participants