mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
feat(native-filters): add tooltip to control values (#14312)
This commit is contained in:
@@ -16,7 +16,10 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import { CustomControlItem } from '@superset-ui/chart-controls';
|
||||
import {
|
||||
CustomControlItem,
|
||||
InfoTooltipWithTrigger,
|
||||
} from '@superset-ui/chart-controls';
|
||||
import React, { FC } from 'react';
|
||||
import { Checkbox } from 'src/common/components';
|
||||
import { FormInstance } from 'antd/lib/form';
|
||||
@@ -77,7 +80,14 @@ const ControlItems: FC<ControlItemsProps> = ({
|
||||
forceUpdate();
|
||||
}}
|
||||
>
|
||||
{controlItem.config.label}
|
||||
{controlItem.config.label}{' '}
|
||||
{controlItem.config.description && (
|
||||
<InfoTooltipWithTrigger
|
||||
placement="top"
|
||||
label={controlItem.config.name}
|
||||
tooltip={controlItem.config.description}
|
||||
/>
|
||||
)}
|
||||
</Checkbox>
|
||||
</StyledCheckboxFormItem>
|
||||
))}
|
||||
|
||||
@@ -75,7 +75,7 @@ const config: ControlPanelConfig = {
|
||||
default: enableEmptyFilter,
|
||||
renderTrigger: true,
|
||||
description: t(
|
||||
'When selection is empty, should an always false filter event be emitted',
|
||||
'When selection is empty, an always false filter event be emitted',
|
||||
),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user