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

Swapping the images #452

Closed
bhalekarP opened this issue Apr 30, 2024 · 3 comments
Closed

Swapping the images #452

bhalekarP opened this issue Apr 30, 2024 · 3 comments
Labels
Documentation usage how to use jsonform

Comments

@bhalekarP
Copy link

Hello , I am using the ajsf in my project , wherein I have requirement where once click on svg icon it should change to another svg icon basically wanted change the icons once click , How can I achieve this inside json schema file ?

@sdetweil sdetweil added Documentation usage how to use jsonform labels Apr 30, 2024
@sdetweil
Copy link
Contributor

you would use the onChange or onClick properties to attach a function to handle the operation in javascript.
see
https://github.com/jsonform/jsonform/wiki#using-event-handlers-to-react-on-fields-updates-in-real-time

@sdetweil
Copy link
Contributor

sdetweil commented Apr 30, 2024

also, asjf is not this project. that is something else.
https://github.com/hamzahamidi/ajsf

@sdetweil
Copy link
Contributor

closing, wrong project reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation usage how to use jsonform
Development

No branches or pull requests

2 participants