Package com.github.dandelion.datatables.core.extension.feature

Examples of com.github.dandelion.datatables.core.extension.feature.AjaxReloadFeature


    entry = new MapEntry<ConfigToken<?>, Object>(TableConfig.AJAX_RELOAD_SELECTOR, "#myReloadSelector");
    processor.process(entry, tableConfiguration);
   
    assertThat(entry.getValue()).isEqualTo("#myReloadSelector");
    assertThat(tableConfiguration.getInternalExtensions()).hasSize(1);
    assertThat(new AjaxReloadFeature()).isIn(tableConfiguration.getInternalExtensions());
  }
View Full Code Here


    entry = new MapEntry<ConfigToken<?>, Object>(TableConfig.AJAX_RELOAD_FUNCTION, "myReloadFunction");
    processor.process(entry, tableConfiguration);

    assertThat(entry.getValue()).isEqualTo("myReloadFunction");
    assertThat(tableConfiguration.getInternalExtensions()).hasSize(1);
    assertThat(new AjaxReloadFeature()).isIn(tableConfiguration.getInternalExtensions());
  }
View Full Code Here

        "bundle1, bundle2#myReloadFunction");
    processor.process(entry, tableConfiguration);

    assertThat(entry.getValue()).isEqualTo("myReloadFunction");
    assertThat(tableConfiguration.getInternalExtensions()).hasSize(1);
    assertThat(new AjaxReloadFeature()).isIn(tableConfiguration.getInternalExtensions());
    assertThat(AssetRequestContext.get(tableConfiguration.getRequest()).getBundles(true)).contains("bundle1",
        "bundle2");
  }
View Full Code Here

  @Override
  protected void doProcess() {
   
    if (StringUtils.isNotBlank(stringifiedValue)) {
      registerExtension(new AjaxReloadFeature());
    }
  }
View Full Code Here

  @Override
  protected void doProcess() {

    if (StringUtils.isNotBlank(stringifiedValue)) {
      registerExtension(new AjaxReloadFeature());
      updateEntry(stringifiedValue);
    }
  }
View Full Code Here

TOP

Related Classes of com.github.dandelion.datatables.core.extension.feature.AjaxReloadFeature

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.