new PermissionAddRole()
INTERNAL CODE DOCUMENTATION COMPLETE
Permission Add Role Controller
A specialized Stimulus controller for managing role assignments to permissions with real-time validation and submit control. Provides seamless role selection validation for RBAC permission configuration workflows.
Key Features:
- Role ID validation from autocomplete selection
- Real-time form validation with submit control
- Focus management for improved user experience
- ID parsing from underscore-separated values
- Integration with autocomplete role selection
- Bootstrap form integration with disabled state management
Extends
- Controller
Methods
checkSubmitEnable()
Validate role selection and control submit button state Parses role ID from underscore-separated value format Enables submission only when valid role is selected Provides focus management for improved user workflow