mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
Table: Add minimum column width field for auto resizing (#35351)
* TablePanel: Adds minimum column width field The table panel uses virtual rendering of rows, which prevents resizing based on the contents of a column. A minimum column width field simulates this ability. * Fixed indentation issue * Updates the table panel documentation Added the "Minimum column width" option to table panel docs and updated the information for the "Column width" option in the docs.
This commit is contained in:
@@ -31,10 +31,16 @@ Show or hide column names imported from your data source.
|
||||
|
||||
## Column width
|
||||
|
||||
By default, Grafana automatically calculates the column width based on the cell contents. In this field option, can override the setting and define the width for all columns in pixels.
|
||||
By default, Grafana automatically calculates the column width based on the table size and the minimum column width. This field option can override the setting and define the width for all columns in pixels.
|
||||
|
||||
For example, if you enter `100` in the field, then when you click outside the field, all the columns will be set to 100 pixels wide.
|
||||
|
||||
## Minimum column width
|
||||
|
||||
By default, the minimum width of the table column is 150 pixels. This field option can override that default and will define the new minimum column width for the table panel in pixels.
|
||||
|
||||
For example, if you enter `75` in the field, then when you click outside the field, all the columns will scale to no smaller than 75 pixels wide.
|
||||
|
||||
## Column alignment
|
||||
|
||||
Choose how Grafana should align cell contents:
|
||||
|
||||
Reference in New Issue
Block a user