mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* 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.
42 lines
1.2 KiB
CUE
42 lines
1.2 KiB
CUE
// Copyright 2021 Grafana Labs
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
package grafanaschema
|
|
|
|
import (
|
|
ui "github.com/grafana/grafana/cue/ui:grafanaschema"
|
|
)
|
|
|
|
Family: {
|
|
lineages: [
|
|
[
|
|
{
|
|
PanelOptions: {
|
|
frameIndex: number | *0
|
|
showHeader: bool | *true
|
|
sortBy?: [...ui.TableSortByFieldState]
|
|
}
|
|
PanelFieldConfig: {
|
|
width?: int
|
|
minWidth?: int
|
|
align?: string | *"auto"
|
|
displayMode?: string | *"auto" // TODO? TableCellDisplayMode
|
|
filterable?: bool
|
|
}
|
|
},
|
|
]
|
|
]
|
|
migrations: []
|
|
}
|