fix(explore): Update tooltip copy for rendering html in tables and pivot tables (#30682)
Co-authored-by: Joe Li <joe@preset.io>
This commit is contained in:
parent
ab95bff7b6
commit
3ec3f0a610
|
|
@ -16,6 +16,13 @@
|
||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
import {
|
||||||
|
ControlPanelConfig,
|
||||||
|
D3_TIME_FORMAT_OPTIONS,
|
||||||
|
Dataset,
|
||||||
|
getStandardizedControls,
|
||||||
|
sharedControls,
|
||||||
|
} from '@superset-ui/chart-controls';
|
||||||
import {
|
import {
|
||||||
ensureIsArray,
|
ensureIsArray,
|
||||||
isAdhocColumn,
|
isAdhocColumn,
|
||||||
|
|
@ -25,13 +32,6 @@ import {
|
||||||
t,
|
t,
|
||||||
validateNonEmpty,
|
validateNonEmpty,
|
||||||
} from '@superset-ui/core';
|
} from '@superset-ui/core';
|
||||||
import {
|
|
||||||
ControlPanelConfig,
|
|
||||||
D3_TIME_FORMAT_OPTIONS,
|
|
||||||
sharedControls,
|
|
||||||
Dataset,
|
|
||||||
getStandardizedControls,
|
|
||||||
} from '@superset-ui/chart-controls';
|
|
||||||
import { MetricsLayoutEnum } from '../types';
|
import { MetricsLayoutEnum } from '../types';
|
||||||
|
|
||||||
const config: ControlPanelConfig = {
|
const config: ControlPanelConfig = {
|
||||||
|
|
@ -436,7 +436,9 @@ const config: ControlPanelConfig = {
|
||||||
label: t('Render columns in HTML format'),
|
label: t('Render columns in HTML format'),
|
||||||
renderTrigger: true,
|
renderTrigger: true,
|
||||||
default: true,
|
default: true,
|
||||||
description: t('Render data in HTML format if applicable.'),
|
description: t(
|
||||||
|
'Renders table cells as HTML when applicable. For example, HTML <a> tags will be rendered as hyperlinks.',
|
||||||
|
),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,23 @@
|
||||||
* specific language governing permissions and limitations
|
* specific language governing permissions and limitations
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
import {
|
||||||
|
ColumnMeta,
|
||||||
|
ColumnOption,
|
||||||
|
ControlConfig,
|
||||||
|
ControlPanelConfig,
|
||||||
|
ControlPanelsContainerProps,
|
||||||
|
ControlPanelState,
|
||||||
|
ControlState,
|
||||||
|
ControlStateMapping,
|
||||||
|
D3_TIME_FORMAT_OPTIONS,
|
||||||
|
Dataset,
|
||||||
|
defineSavedMetrics,
|
||||||
|
getStandardizedControls,
|
||||||
|
QueryModeLabel,
|
||||||
|
sections,
|
||||||
|
sharedControls,
|
||||||
|
} from '@superset-ui/chart-controls';
|
||||||
import {
|
import {
|
||||||
ensureIsArray,
|
ensureIsArray,
|
||||||
GenericDataType,
|
GenericDataType,
|
||||||
|
|
@ -27,23 +44,6 @@ import {
|
||||||
SMART_DATE_ID,
|
SMART_DATE_ID,
|
||||||
t,
|
t,
|
||||||
} from '@superset-ui/core';
|
} from '@superset-ui/core';
|
||||||
import {
|
|
||||||
ColumnOption,
|
|
||||||
ControlConfig,
|
|
||||||
ControlPanelConfig,
|
|
||||||
ControlPanelsContainerProps,
|
|
||||||
ControlStateMapping,
|
|
||||||
D3_TIME_FORMAT_OPTIONS,
|
|
||||||
QueryModeLabel,
|
|
||||||
sharedControls,
|
|
||||||
ControlPanelState,
|
|
||||||
ControlState,
|
|
||||||
Dataset,
|
|
||||||
ColumnMeta,
|
|
||||||
defineSavedMetrics,
|
|
||||||
getStandardizedControls,
|
|
||||||
sections,
|
|
||||||
} from '@superset-ui/chart-controls';
|
|
||||||
|
|
||||||
import { isEmpty } from 'lodash';
|
import { isEmpty } from 'lodash';
|
||||||
import { PAGE_SIZE_OPTIONS } from './consts';
|
import { PAGE_SIZE_OPTIONS } from './consts';
|
||||||
|
|
@ -466,7 +466,9 @@ const config: ControlPanelConfig = {
|
||||||
label: t('Render columns in HTML format'),
|
label: t('Render columns in HTML format'),
|
||||||
renderTrigger: true,
|
renderTrigger: true,
|
||||||
default: true,
|
default: true,
|
||||||
description: t('Render data in HTML format if applicable.'),
|
description: t(
|
||||||
|
'Renders table cells as HTML when applicable. For example, HTML <a> tags will be rendered as hyperlinks.',
|
||||||
|
),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue