Recursive checkbox state #15877
Unanswered
aldesrahim
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Package
Panel builder
Package Version
v3.3.3
How can we help you?
So, I want to create a custom field that contain checkboxes of permissions (nested), and every time the "parent" checkbox is changed, its children will be checked and disabled.
I am using AlpineJS for this, I dont really know if this an AlpineJS problem or am I missing something.
Anyone have any ideas or solutions to this? Thank you!
PermissionList.php (field)
forms.components.permission-list.index.blade.php (blade)
forms.components.permission-list.permissions.php (blade)
Demo
Screen.Recording.2025-03-17.112841.mp4
Beta Was this translation helpful? Give feedback.
All reactions