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

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


  @Test
  public void should_enable_multifiltering_when_nonempty_string() {
    entry = new MapEntry<ConfigToken<?>, Object>(TableConfig.FEATURE_FILTER_SELECTOR, "aCssSelector");
    processor.process(entry, tableConfiguration);
    assertThat(entry.getValue()).isEqualTo("aCssSelector");
    assertThat(new ArrayList<Extension>(tableConfiguration.getInternalExtensions())).contains(new MultiFilterFeature());
    assertThat(tableConfiguration.getStagingConfiguration().get(TableConfig.FEATURE_FILTER_TRIGGER)).isEqualTo("click");
  }
View Full Code Here


  @Override
  public void doProcess() {

    if (StringUtils.isNotBlank(stringifiedValue)) {
      registerExtension(new MultiFilterFeature());
      addTableEntry(TableConfig.FEATURE_FILTER_TRIGGER, "click");
      updateEntry(stringifiedValue);
    }
  }
View Full Code Here

TOP

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

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.