Skip to content

Commit 4ab8986

Browse files
committed
Added tooltips for checkboxes
1 parent f50ce81 commit 4ab8986

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client/packages/lowcoder/src/comps/comps/selectInputComp/checkboxComp.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { trans } from "i18n";
2424
import { RefControl } from "comps/controls/refControl";
2525
import { migrateOldData } from "comps/generators/simpleGenerators";
2626
import { fixOldInputCompData } from "../textInputComp/textInputConstants";
27+
import Tooltip from "antd/es/tooltip";
2728

2829
export const getStyle = (style: CheckboxStyleType) => {
2930
return css`
@@ -182,7 +183,11 @@ let CheckboxBasicComp = (function () {
182183
options={props.options
183184
.filter((option) => option.value !== undefined && !option.hidden)
184185
.map((option) => ({
185-
label: option.label,
186+
label: (
187+
<Tooltip title={option.label}>
188+
<span>{option.label}</span>
189+
</Tooltip>
190+
),
186191
value: option.value,
187192
disabled: option.disabled,
188193
}))}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy