use of de.tudarmstadt.ukp.clarin.webanno.ui.config.JQueryUIResourceBehavior in project webanno by webanno.
the class WicketApplicationBase method initJQueryUI.
protected void initJQueryUI() {
JQueryUILibrarySettings jqueryUiCfg = JQueryUILibrarySettings.get();
// Here we ensure that bootstrap is loaded before JQuery UI such that the
// JQuery UI tooltip that we use e.g. on the annotation page takes precedence over
// the less powerful Bootstrap tooltip (both are JQuery plugins using the same name!)
jqueryUiCfg.setJavaScriptReference(BootstrapAwareJQueryUIJavaScriptResourceReference.get());
getComponentInstantiationListeners().add(component -> {
if (component instanceof Page) {
component.add(new JQueryUIResourceBehavior());
}
});
}
Aggregations