use of com.helger.photon.uictrls.datatables.plugins.DataTablesPluginSearchHighlight in project phoss-directory by phax.
the class AppCommonUI method init.
public static void init() {
BootstrapDataTables.setConfigurator((aLEC, aTable, aDataTables) -> {
final IRequestWebScopeWithoutResponse aRequestScope = aLEC.getRequestScope();
aDataTables.setAutoWidth(false).setLengthMenu(LENGTH_MENU).setAjaxBuilder(new JQueryAjaxBuilder().url(CAjax.DATATABLES.getInvocationURL(aRequestScope)).data(new JSAssocArray().add(AjaxExecutorDataTables.OBJECT_ID, aTable.getID()))).setServerFilterType(EDataTablesFilterType.ALL_TERMS_PER_ROW).setTextLoadingURL(CAjax.DATATABLES_I18N.getInvocationURL(aRequestScope), AjaxExecutorDataTablesI18N.LANGUAGE_ID).addPlugin(new DataTablesPluginSearchHighlight());
});
// By default allow markdown in system message
BootstrapSystemMessage.setDefaultUseMarkdown(true);
// Change logo image?
final String sLogoImageURL = PDServerConfiguration.getLogoImageURL();
if (StringHelper.hasText(sLogoImageURL))
CPDPublisher.setLogoImageURL(sLogoImageURL);
}
use of com.helger.photon.uictrls.datatables.plugins.DataTablesPluginSearchHighlight in project phoss-smp by phax.
the class SMPCommonUI method init.
public static void init() {
BootstrapDataTables.setConfigurator((aLEC, aTable, aDataTables) -> {
final IRequestWebScopeWithoutResponse aRequestScope = aLEC.getRequestScope();
aDataTables.setAutoWidth(false).setLengthMenu(LENGTH_MENU).setAjaxBuilder(new JQueryAjaxBuilder().url(CAjax.DATATABLES.getInvocationURL(aRequestScope)).data(new JSAssocArray().add(AjaxExecutorDataTables.OBJECT_ID, aTable.getID()))).setServerFilterType(EDataTablesFilterType.ALL_TERMS_PER_ROW).setTextLoadingURL(CAjax.DATATABLES_I18N.getInvocationURL(aRequestScope), AjaxExecutorDataTablesI18N.LANGUAGE_ID).addPlugin(new DataTablesPluginSearchHighlight());
});
// By default allow markdown in system message
BootstrapSystemMessage.setDefaultUseMarkdown(true);
}
use of com.helger.photon.uictrls.datatables.plugins.DataTablesPluginSearchHighlight in project peppol-practical by phax.
the class AppCommonUI method init.
public static void init() {
RequestParameterManager.getInstance().setParameterHandler(new RequestParameterHandlerURLPathNamed());
BootstrapDataTables.setConfigurator((aLEC, aTable, aDataTables) -> {
final IRequestWebScopeWithoutResponse aRequestScope = aLEC.getRequestScope();
aDataTables.setAutoWidth(false).setLengthMenu(LENGTH_MENU).setAjaxBuilder(new JQueryAjaxBuilder().url(CAjax.DATATABLES.getInvocationURL(aRequestScope)).data(new JSAssocArray().add(AjaxExecutorDataTables.OBJECT_ID, aTable.getID()))).setServerFilterType(EDataTablesFilterType.ALL_TERMS_PER_ROW).setTextLoadingURL(CAjax.DATATABLES_I18N.getInvocationURL(aRequestScope), AjaxExecutorDataTablesI18N.LANGUAGE_ID).addPlugin(new DataTablesPluginSearchHighlight());
});
// By default allow markdown in system message
BootstrapSystemMessage.setDefaultUseMarkdown(true);
// Register comment handlers
CommentThreadManager.getInstance().registerObjectType(CPPApp.OT_PAGE);
}
Aggregations