Skip to content

Conversation

@DenisLopatin
Copy link

@DenisLopatin DenisLopatin commented Sep 1, 2025

Closes: #39290

Description

Adds the ability to change a predefined configuration using callback functions to change runtime behavior without the need for complex configurations.

Motivation & Context

At the moment, bootstrap does not have the ability to somehow influence the rules that were set when creating the component. Not to mention creating dynamic behavior depending on the context.

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would change existing functionality)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Live previews

- adds the ability to change the configuration settings of the modal window during script execution
- adds tests for new functionality
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Modal] Allow dynamic configs by reevaluating its properties on show

2 participants