Content-Length: 281922 | pFad | http://github.com/lowcoder-org/lowcoder/commit/4ab8986261552c9be9257a6564e523ae61c5fb40

1E Added tooltips for checkboxes · lowcoder-org/lowcoder@4ab8986 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lowcoder-org/lowcoder/commit/4ab8986261552c9be9257a6564e523ae61c5fb40

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy