hide
The hide
method is used within setLayoutHints
to hide columns in the table by default.
Syntax
hide(cols...)
Parameters
Parameter | Type | Description |
---|---|---|
cols | String | The columns to hide in the table. |
cols | Collection<String> | The columns to hide in the table. |
Returns
A new table with layout instructions for the UI.
Examples
In the following example, the column Even
is hidden in the result table.
import io.deephaven.engine.util.LayoutHintBuilder
source = newTable(
stringCol("A", "A", "a"),
stringCol("B", "B", "b"),
stringCol("C", "C", "c"),
stringCol("D", "D", "d"),
stringCol("E", "E", "e"),
stringCol("Y", "Y", "y"),
intCol("Even", 2, 4),
intCol("Odd", 1, 3)
)
result = source.setLayoutHints(
LayoutHintBuilder.get()
.hide("Even")
.build()
)
- source
- result