mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
feat(table): consolidate Customize Columns into Visual Formatting section
Move the per-column "Customize columns" control into the "Visual formatting"
section so users see that per-column overrides and chart-wide toggles are
related. Rename the chart-wide toggles ("Show cell bars", "Align +/-",
"Add colors to cell bars for +/-") to append "for all columns", clarifying
that they apply globally and not per-column. Applies to both the Table and
Interactive Tables (AG Grid) plugins.
This commit is contained in:
@@ -552,6 +552,12 @@ const config: ControlPanelConfig = {
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
{
|
||||
label: t('Visual formatting'),
|
||||
expanded: true,
|
||||
controlSetRows: [
|
||||
[
|
||||
{
|
||||
name: 'column_config',
|
||||
@@ -648,18 +654,12 @@ const config: ControlPanelConfig = {
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
{
|
||||
label: t('Visual formatting'),
|
||||
expanded: true,
|
||||
controlSetRows: [
|
||||
[
|
||||
{
|
||||
name: 'show_cell_bars',
|
||||
config: {
|
||||
type: 'CheckboxControl',
|
||||
label: t('Show cell bars'),
|
||||
label: t('Show cell bars for all columns'),
|
||||
renderTrigger: true,
|
||||
default: true,
|
||||
description: t(
|
||||
@@ -673,7 +673,7 @@ const config: ControlPanelConfig = {
|
||||
name: 'align_pn',
|
||||
config: {
|
||||
type: 'CheckboxControl',
|
||||
label: t('Align +/-'),
|
||||
label: t('Align +/- for all columns'),
|
||||
renderTrigger: true,
|
||||
default: false,
|
||||
description: t(
|
||||
@@ -687,7 +687,7 @@ const config: ControlPanelConfig = {
|
||||
name: 'color_pn',
|
||||
config: {
|
||||
type: 'CheckboxControl',
|
||||
label: t('Add colors to cell bars for +/-'),
|
||||
label: t('Add colors to cell bars for +/- for all columns'),
|
||||
renderTrigger: true,
|
||||
default: true,
|
||||
description: t(
|
||||
|
||||
Reference in New Issue
Block a user