### BootstrapSettings Initialization Source: https://github.com/martin-g/wicket-bootstrap/wiki/BootstrapSettings Example of initializing BootstrapSettings and installing it in the Wicket application. ```APIDOC ## BootstrapSettings Initialization ### Description This snippet demonstrates how to override the `Application.init()` method to install Bootstrap settings. It shows the creation of a `BootstrapSettings` instance and setting it to use minimized resources. ### Method ```java @Override public void init() { super.init(); BootstrapSettings settings = new BootstrapSettings(); settings.minify(true); // use minimized version of all bootstrap references Bootstrap.install(this, settings); } ``` ``` -------------------------------- ### Install Bootstrap with Settings Source: https://github.com/martin-g/wicket-bootstrap/wiki/BootstrapSettings Override the Application.init() method to install Bootstrap with custom settings. Use this to enable minification for Bootstrap resources. ```java /** * @see org.apache.wicket.Application#init() */ @Override public void init() { super.init(); BootstrapSettings settings = new BootstrapSettings(); settings.minify(true); // use minimized version of all bootstrap references Bootstrap.install(this, settings); } ``` -------------------------------- ### Programmatic API Example Source: https://github.com/martin-g/wicket-bootstrap/blob/wicket-10.x-bootstrap-5.x/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/JavascriptPage.html Demonstrates chaining methods and initializing plugins programmatically. All public APIs are chainable and return the collection acted upon. ```javascript $('.btn.danger').button('toggle').addClass('fat') ``` -------------------------------- ### Accordion Example Source: https://github.com/martin-g/wicket-bootstrap/blob/wicket-10.x-bootstrap-5.x/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/JavascriptPage.html An example of an accordion-style widget built using the collapse plugin. It uses `data-bs-toggle` and `data-bs-parent` attributes for group management. ```html
Anim pariatur cliche...
Anim pariatur cliche...
``` -------------------------------- ### Media List Example Source: https://github.com/martin-g/wicket-bootstrap/blob/wicket-10.x-bootstrap-5.x/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/ComponentsPage.html Demonstrates how to use media objects within an unordered list, suitable for comment threads or article lists. ```html ``` -------------------------------- ### Install Bootstrap Settings in Wicket Application Source: https://github.com/martin-g/wicket-bootstrap/blob/wicket-10.x-bootstrap-5.x/README.md Install the Bootstrap settings class in your Wicket application's Application#init() method. This enables the use of all wicket-bootstrap components. For customization, provide a BootstrapSettings object with your desired configurations. ```java // best place to do this is in Application#init() Bootstrap.install(this); // if you want to customize bootstrap: BootstrapSettings settings = new BootstrapSettings(); settings.setXXX(...); Bootstrap.install(this, settings); ``` -------------------------------- ### Handle Modal Show Event Source: https://github.com/martin-g/wicket-bootstrap/blob/wicket-10.x-bootstrap-5.x/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/JavascriptPage.html An example of listening for the 'show.bs.modal' event and preventing the modal from being shown based on a condition. ```javascript document.getElementById('myModal').addEventListener('show.bs.modal', function (e) { if (!data) return e.preventDefault() // stops modal from being shown }) ``` -------------------------------- ### Basic Tabbable Interface Setup Source: https://github.com/martin-g/wicket-bootstrap/blob/wicket-10.x-bootstrap-5.x/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/ComponentsPage.html Implement tabbable content panes using Bootstrap's nav components. Each tab link should reference a unique `.tab-pane` ID, and all panes should be wrapped in a `.tab-content` container. ```html

I'm in Section 1.

Howdy, I'm in Section 2.

``` -------------------------------- ### Creating a Nav List Example Source: https://github.com/martin-g/wicket-bootstrap/blob/wicket-10.x-bootstrap-5.x/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/ComponentsPage.html Build groups of navigation links with optional headers using a simple list structure. Add `class="nav flex-column"` to the `