Module wicket.bootstrap.core
Class BootstrapResourceAppender
java.lang.Object
de.agilecoders.wicket.core.settings.BootstrapResourceAppender
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionThis constructor uses js and css bootstrap resourcesConstruct. -
Method Summary
-
Constructor Details
-
BootstrapResourceAppender
public BootstrapResourceAppender()This constructor uses js and css bootstrap resources -
BootstrapResourceAppender
Construct.- Parameters:
behavior- the behavior that should be added to all new pages
-
-
Method Details
-
onInstantiation
- Specified by:
onInstantiationin interfaceIComponentInstantiationListener
-