Class BootstrapResourceAppender

java.lang.Object
de.agilecoders.wicket.core.settings.BootstrapResourceAppender
All Implemented Interfaces:
IComponentInstantiationListener

public class BootstrapResourceAppender extends Object implements IComponentInstantiationListener
#### Description Appends a BootstrapBaseBehavior to all new Page instances. As default BootstrapResourcesBehavior is used. #### Usage simple usage (adding both, js and css bootstrap resources): ```java app.getComponentInstantiationListener(new BootstrapResourceAppender()); ``` adding css resources only: ```java app.getComponentInstantiationListener(BootstrapBaseBehavior.instance()); ```
  • Constructor Details

    • BootstrapResourceAppender

      public BootstrapResourceAppender()
      This constructor uses js and css bootstrap resources
    • BootstrapResourceAppender

      public BootstrapResourceAppender(BootstrapBaseBehavior behavior)
      Construct.
      Parameters:
      behavior - the behavior that should be added to all new pages
  • Method Details