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