Releases: AppsDevTeam/nette-forms-components
Releases · AppsDevTeam/nette-forms-components
v2.2.26
v2.2.25: Merge pull request #10 from AppsDevTeam/add-form-switcher
Add form switcher
v2.2.24: Moves form snippet outside the form tag
Encapsulates the form within a snippet for better control and reusability. This allows to refresh the form independently.
v2.2.23: Redraws section unconditionally
Removes the conditional check for form validity before redrawing a section. This ensures the section is always redrawn when the associated event is triggered, regardless of the form's validation state.
v2.2.22: Allows SubmitterControl as watchForRedraw
Extends the watchForRedraw functionality to accept a SubmitterControl instance directly, simplifying the redraw handling setup when a submitter control triggers the redraw. This change avoids creating additional submit buttons, improving efficiency and code clarity.
v2.2.21: Improves section redraw and validation handling
Refactors section rendering to use snippets for improved redraw handling. Ensures that sections are only redrawn when necessary. Introduces validation scope configuration for sections and integrates it with redraw handlers. This allows more precise control over which parts of the form are re-rendered and validated, improving performance and user experience.
v2.2.20: Enables multiple redraw handlers for sections
Allows sections to have multiple redraw handlers instead of just one. This enables more flexible and granular control over which parts of the form are re-rendered when certain events occur. Also prevents controls from being rendered multiple times.
v2.2.19: Fixes section redraw logic
Updates section redraw logic to properly handle multiple redraw handlers and ensure that the `isControlInvalid` option is set correctly for ancestor sections. Removes redundant check for control invalidity in the latte template, relying instead on the section's own invalidation status. This streamlines the redraw process and avoids unnecessary re-renders.
v2.2.18: Refactors ControlGroup to Section
Renames `ControlGroup` to `Section` to better reflect its purpose in organizing form elements. Updates related code and templates to reflect this change. This change provides a more semantic naming convention. Updates toggle processing to correctly handle sections and ensures that only BaseControl instances are processed.
v2.2.17: Enhances ControlGroup identification
Improves ControlGroup identification by using a dedicated method to generate HTML IDs. This change ensures that ControlGroup elements are correctly identified within forms, especially when nested, by constructing unique HTML IDs based on their parentage. Removes the duplicated constant and instead defines it in the Form class.