Search in sources :

Example 1 with DataTablesPluginSearchHighlight

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);
}
Also used : IRequestWebScopeWithoutResponse(com.helger.web.scope.IRequestWebScopeWithoutResponse) JQueryAjaxBuilder(com.helger.html.jquery.JQueryAjaxBuilder) JSAssocArray(com.helger.html.jscode.JSAssocArray) DataTablesPluginSearchHighlight(com.helger.photon.uictrls.datatables.plugins.DataTablesPluginSearchHighlight)

Example 2 with DataTablesPluginSearchHighlight

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);
}
Also used : IRequestWebScopeWithoutResponse(com.helger.web.scope.IRequestWebScopeWithoutResponse) JQueryAjaxBuilder(com.helger.html.jquery.JQueryAjaxBuilder) JSAssocArray(com.helger.html.jscode.JSAssocArray) DataTablesPluginSearchHighlight(com.helger.photon.uictrls.datatables.plugins.DataTablesPluginSearchHighlight)

Example 3 with DataTablesPluginSearchHighlight

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);
}
Also used : IRequestWebScopeWithoutResponse(com.helger.web.scope.IRequestWebScopeWithoutResponse) JQueryAjaxBuilder(com.helger.html.jquery.JQueryAjaxBuilder) RequestParameterHandlerURLPathNamed(com.helger.photon.core.requestparam.RequestParameterHandlerURLPathNamed) JSAssocArray(com.helger.html.jscode.JSAssocArray) DataTablesPluginSearchHighlight(com.helger.photon.uictrls.datatables.plugins.DataTablesPluginSearchHighlight)

Aggregations

JQueryAjaxBuilder (com.helger.html.jquery.JQueryAjaxBuilder)3 JSAssocArray (com.helger.html.jscode.JSAssocArray)3 DataTablesPluginSearchHighlight (com.helger.photon.uictrls.datatables.plugins.DataTablesPluginSearchHighlight)3 IRequestWebScopeWithoutResponse (com.helger.web.scope.IRequestWebScopeWithoutResponse)3 RequestParameterHandlerURLPathNamed (com.helger.photon.core.requestparam.RequestParameterHandlerURLPathNamed)1