diff --git a/web/client-api/src/main/java/io/deephaven/web/client/api/tree/JsTreeTable.java b/web/client-api/src/main/java/io/deephaven/web/client/api/tree/JsTreeTable.java index aea546f81a5..10454bcb05c 100644 --- a/web/client-api/src/main/java/io/deephaven/web/client/api/tree/JsTreeTable.java +++ b/web/client-api/src/main/java/io/deephaven/web/client/api/tree/JsTreeTable.java @@ -359,6 +359,7 @@ private enum RebuildStep { private Column rowExpandedCol; private final Column actionCol; private final JsArray groupedColumns; + private JsLayoutHints layoutHints; // The source JsTable behind the original HierarchicalTable, lazily built at this time private final JsLazy> sourceTable; @@ -1082,6 +1083,25 @@ public String getDescription() { return tableDefinition.getAttributes().getDescription(); } + @JsProperty + @JsNullable + public JsLayoutHints getLayoutHints() { + if (layoutHints == null) { + createLayoutHints(); + } + return layoutHints; + } + + private void createLayoutHints() { + String hintsString = tableDefinition.getAttributes().getLayoutHints(); + JsLayoutHints jsHints = new JsLayoutHints(); + if (hintsString == null) { + layoutHints = null; + } else { + layoutHints = jsHints.parse(hintsString); + } + } + /** * The current number of rows given the table's contents and the various expand/collapse states of each node. (No * totalSize is provided at this time; its definition becomes unclear between roll-up and tree tables, especially