Skip to content

Commit 3a27636

Browse files
committed
ALDASH-497 add prefix and suffix
ALDASH-497 add prefix and suffix
1 parent 47815cb commit 3a27636

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

packages/commons/src/Format.jsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,24 @@ export const Format = ({
398398
value={format.minimumFractionDigits}
399399
/>
400400
</PanelRow>
401+
<PanelRow>
402+
<TextControl
403+
label={__("Prefix", "dg")}
404+
onChange={(value) => {
405+
onFormatChange(Object.assign({}, format, {prefix: value}), 'format')
406+
}}
407+
value={format.prefix}
408+
/>
409+
</PanelRow>
410+
<PanelRow>
411+
<TextControl
412+
label={__("Suffix", "dg")}
413+
onChange={(value) => {
414+
onFormatChange(Object.assign({}, format, {suffix: value}), 'format')
415+
}}
416+
value={format.suffix}
417+
/>
418+
</PanelRow>
401419
</PanelBody>, <>
402420
{!hiddenCustomAxisFormat && <PanelRow>
403421
<ToggleControl label={__("Use Custom Axis Format", "dg")} checked={useCustomAxisFormat}

0 commit comments

Comments
 (0)