public interface TableDisplayerSettingsBuilder<T extends TableDisplayerSettingsBuilder> extends DisplayerSettingsBuilder<T>
DisplayerSettingsFactory.newTableSettings() .title("List of Opportunities") .tablePageSize(20) .tableOrderEnabled(true) .tableOrderDefault("amount", "desc") .buildSettings()
Modifier and Type | Method and Description |
---|---|
T |
tableColumnPickerEnabled(boolean enabled)
If true, it enables to show/hide the table columns by means of a column picker widget.
|
T |
tableOrderDefault(String columnId,
org.dashbuilder.dataset.sort.SortOrder order)
Set the default ordering column.
|
T |
tableOrderDefault(String columnId,
String order)
Set the default ordering column.
|
T |
tableOrderEnabled(boolean enabled)
If true, it enables the table columns to be ordered.
|
T |
tablePageSize(int pageSize)
Sets the page size (i.e. the number of rows per page) for this table displayer.
|
T |
tableWidth(int tableWidth)
Set the table total width.
|
backgroundColor, buildSettings, dataset, expression, expression, filterOff, filterOn, format, format, format, htmlTemplate, jsTemplate, refreshOff, refreshOn, refreshOn, renderer, subtype, title, titleVisible, uuid
T tablePageSize(int pageSize)
pageSize
- The page size.T tableOrderEnabled(boolean enabled)
enabled
- True to enable, false to disable.T tableOrderDefault(String columnId, org.dashbuilder.dataset.sort.SortOrder order)
columnId
- The identifier of the column by which the table should by default be ordered.order
- The sort order to apply on the specified column.SortOrder
T tableOrderDefault(String columnId, String order)
columnId
- The identifier of the column by which the table should by default be ordered.order
- The sort order to apply on the specified column, as a String (accepted values are "asc" and "desc".T tableWidth(int tableWidth)
tableWidth
- The total table width, in pixels.T tableColumnPickerEnabled(boolean enabled)
enabled
- True to enable, false to disable.Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.