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

feature request: dependsOnCallback #33

Open
otrsw opened this issue Apr 1, 2023 · 3 comments
Open

feature request: dependsOnCallback #33

otrsw opened this issue Apr 1, 2023 · 3 comments

Comments

@otrsw
Copy link

otrsw commented Apr 1, 2023

Firstly thank you for maintaining this component and adding the Nova 4 support. Much appreciated!

I would like to request a feature to allow for more flexible dependsOn logic. We have various scenarios where the check does not fit any of the provided dependsOnX methods available. Instead of adding all these variations, it would be great if I can specify a callback and then handle the specific logic.

I would expect the callback to receive the value of the dependsOn field, and you can expect the callback to return true/false.

Something like

->dependsOnCallback('my_field',function($value) {
//add business logic

return true; //if I want it to show
return false; //if I do not want it to show

}
@jmverges
Copy link

+1 here

@beiaduo
Copy link

beiaduo commented May 8, 2023

+1

1 similar comment
@myounis97
Copy link

+1

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

4 participants