Search in sources :

Example 1 with JsTreeTableConfig

use of io.deephaven.web.client.api.tree.JsTreeTableConfig in project deephaven-core by deephaven.

the class JsTable method treeTable.

// TODO: #37: Need SmartKey support for this functionality
// @JsMethod
public Promise<JsTreeTable> treeTable(Object configObject) {
    Objects.requireNonNull(configObject, "Table.treeTable configuration");
    final JsTreeTableConfig config;
    if (configObject instanceof JsTreeTableConfig) {
        config = (JsTreeTableConfig) configObject;
    } else {
        config = new JsTreeTableConfig(Js.cast(configObject));
    }
    return workerConnection.newState((c, state, metadata) -> {
        // );
        throw new UnsupportedOperationException("treeTable");
    }, "treeTable " + Global.JSON.stringify(config)).refetch(this, workerConnection.metadata()).then(state -> new JsTreeTable(state, workerConnection).finishFetch());
}
Also used : JsTreeTable(io.deephaven.web.client.api.tree.JsTreeTable) JsTreeTableConfig(io.deephaven.web.client.api.tree.JsTreeTableConfig)

Aggregations

JsTreeTable (io.deephaven.web.client.api.tree.JsTreeTable)1 JsTreeTableConfig (io.deephaven.web.client.api.tree.JsTreeTableConfig)1