mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
fix(explore): allow free-form d3 format on custom column formatting (#27023)
This commit is contained in:
@@ -517,6 +517,7 @@ export type ControlFormItemSpec<T extends ControlType = ControlType> = {
|
||||
debounceDelay?: number;
|
||||
} & (T extends 'Select'
|
||||
? {
|
||||
allowNewOptions?: boolean;
|
||||
options: any;
|
||||
value?: string;
|
||||
defaultValue?: string;
|
||||
|
||||
@@ -42,6 +42,7 @@ export type SharedColumnConfigProp =
|
||||
| 'currencyFormat';
|
||||
|
||||
const d3NumberFormat: ControlFormItemSpec<'Select'> = {
|
||||
allowNewOptions: true,
|
||||
controlType: 'Select',
|
||||
label: t('D3 format'),
|
||||
description: D3_FORMAT_DOCS,
|
||||
|
||||
Reference in New Issue
Block a user