TableNG: Update description for wrapHeaderText (#107722)

pull/107727/head
Paul Marbach 2 weeks ago committed by GitHub
parent 34c7ea9c28
commit 7181f8d89d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/grafana-schema/src/common/common.gen.ts
  2. 2
      packages/grafana-schema/src/common/table.cue
  3. 5
      public/app/plugins/panel/table/table-new/module.tsx
  4. 2
      public/locales/en-US/grafana.json

@ -965,7 +965,7 @@ export interface TableFieldOptions {
minWidth?: number;
width?: number;
/**
* Enables text wrapping for the display name in the table header.
* Enables text wrapping for column headers
*/
wrapHeaderText?: boolean;
}

@ -105,7 +105,7 @@ TableFieldOptions: {
filterable?: bool
// Hides any header for a column, useful for columns that show some static content or buttons.
hideHeader?: bool
// Enables text wrapping for the display name in the table header.
// Enables text wrapping for column headers
wrapHeaderText?: bool
} @cuetsy(kind="interface")

@ -105,10 +105,7 @@ export const plugin = new PanelPlugin<Options, FieldConfig>(TablePanel)
.addBooleanSwitch({
path: 'wrapHeaderText',
name: t('table.name-wrap-header-text', 'Wrap header text'),
description: t(
'table.description-wrap-header-text',
'Enables text wrapping for the field name in the table header'
),
description: t('table.description-wrap-header-text', 'Enables text wrapping for column headers'),
category,
defaultValue: defaultTableFieldOptions.wrapHeaderText,
})

@ -11740,7 +11740,7 @@
"description-count-rows": "Display a single count for all data rows",
"description-fields": "Select the fields that should be calculated",
"description-min-column-width": "The minimum width for column auto resizing",
"description-wrap-header-text": "Enables text wrapping for the field name in the table header",
"description-wrap-header-text": "Enables text wrapping for column headers",
"image-cell-options-editor": {
"description-alt-text": "Alternative text that will be displayed if an image can't be displayed or for users who use a screen reader",
"description-title-text": "Text that will be displayed when the image is hovered by a cursor",

Loading…
Cancel
Save