use of de.agilecoders.wicket.core.settings.IBootstrapSettings in project oc-explorer by devgateway.
the class FormsWebApplication method configureBootstrap.
/**
* configures wicket-bootstrap and installs the settings.
*/
private void configureBootstrap() {
WicketWebjars.install(this);
final IBootstrapSettings settings = new BootstrapSettings();
// specify an empty bootstrap css resource so that we can have more
// control when do we load the bootstrap styles.
// By default all pages will load bootstrap.css file and there are
// situations (like print page) when we don't need this styles.
// The boostrap.css file is loaded as dependency in MainCss Instance
// settings.setCssResourceReference(EmptyCss.INSTANCE);
settings.useCdnResources(false);
// use the default bootstrap theme
Bootstrap.install(this, settings);
BootstrapLess.install(this);
}
use of de.agilecoders.wicket.core.settings.IBootstrapSettings in project webanno by webanno.
the class BootstrapAwareJQueryUIJavaScriptResourceReference method getDependencies.
@Override
public List<HeaderItem> getDependencies() {
IBootstrapSettings settings = Bootstrap.getSettings();
final JavaScriptReferenceHeaderItem jsReference = JavaScriptHeaderItem.forReference(settings.getJsResourceReference(), new PageParameters(), "bootstrap-js", settings.deferJavascript());
return Dependencies.combine(super.getDependencies(), jsReference);
}
use of de.agilecoders.wicket.core.settings.IBootstrapSettings in project ocvn by devgateway.
the class FormsWebApplication method configureBootstrap.
/**
* configures wicket-bootstrap and installs the settings.
*/
private void configureBootstrap() {
WicketWebjars.install(this);
final IBootstrapSettings settings = new BootstrapSettings();
// specify an empty bootstrap css resource so that we can have more
// control when do we load the bootstrap styles.
// By default all pages will load bootstrap.css file and there are
// situations (like print page) when we don't need this styles.
// The boostrap.css file is loaded as dependency in MainCss Instance
// settings.setCssResourceReference(EmptyCss.INSTANCE);
settings.useCdnResources(false);
// use the default bootstrap theme
Bootstrap.install(this, settings);
BootstrapLess.install(this);
}
Aggregations