Adding props to the price widget
This commit is contained in:
@@ -8,6 +8,7 @@ export const BgfcPriceWidget = (props: WidgetProps) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<NumericFormat
|
<NumericFormat
|
||||||
|
{...props}
|
||||||
customInput={TextField}
|
customInput={TextField}
|
||||||
getInputRef={inputRef}
|
getInputRef={inputRef}
|
||||||
onValueChange={values => {
|
onValueChange={values => {
|
||||||
@@ -20,14 +21,14 @@ export const BgfcPriceWidget = (props: WidgetProps) => {
|
|||||||
}}
|
}}
|
||||||
slotProps={{
|
slotProps={{
|
||||||
input: {
|
input: {
|
||||||
startAdornment: <InputAdornment position="end">$</InputAdornment>,
|
//startAdornment: <InputAdornment position="end">$</InputAdornment>,
|
||||||
endAdornment: <InputAdornment position="start">€</InputAdornment>
|
endAdornment: <InputAdornment position="start">€</InputAdornment>
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
valueIsNumericString={true}
|
valueIsNumericString={true}
|
||||||
fixedDecimalScale={true}
|
fixedDecimalScale={true}
|
||||||
decimalScale={2}
|
decimalScale={2}
|
||||||
defaultValue={0}
|
//defaultValue={0}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user