Class JsTotalsTableConfig

java.lang.Object
io.deephaven.web.client.api.JsTotalsTableConfig

@JsType(name="TotalsTableConfig", namespace="dh") public class JsTotalsTableConfig extends Object
Describes how a Totals Table will be generated from its parent table. Each table has a default (which may be null) indicating how that table was configured when it was declared, and each Totals Table has a similar property describing how it was created. Both the Table.getTotalsTable and Table.getGrandTotalsTable methods take this config as an optional parameter - without it, the table's default will be used, or if null, a default instance of TotalsTableConfig will be supplied. This class has a no-arg constructor, allowing an instance to be made with the default values provided. However, any JS object can be passed in to the methods which accept instances of this type, provided their values adhere to the expected formats.
  • Field Details

  • Constructor Details

    • JsTotalsTableConfig

      public JsTotalsTableConfig()
    • JsTotalsTableConfig

      @JsIgnore public JsTotalsTableConfig(jsinterop.base.JsPropertyMap<Object> source)
  • Method Details

    • parse

      @JsIgnore public static JsTotalsTableConfig parse(String configString)
      Implementation from TotalsTableBuilder.fromDirective, plus changes required to make this able to act on plan JS objects/arrays. Note that this omits groupBy for now, until the server directive format supports it!
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • serialize

      @JsIgnore public String serialize()
      Implementation from TotalsTableBuilder.buildDirective(), plus a minor change to iterate JS arrays/objects correctly. Note that this omits groupBy until the server directive format supports it!
    • buildRequest

      @JsIgnore public AggregateRequest buildRequest(elemental2.core.JsArray<Column> allColumns)
    • getCustomColumns

      @JsIgnore public elemental2.core.JsArray<String> getCustomColumns()
    • getDropColumns

      @JsIgnore public elemental2.core.JsArray<String> getDropColumns()