<sw-price-field :taxRate="{ taxRate: 19 }"
:price="[{ net: 10, gross: 11.90, currencyId: '...' }, ...]"
:defaultPrice="{...}"
:currency="{...}">
</sw-price-field>
Property name | Type | Default |
---|---|---|
price | Array | |
defaultPrice | Object | |
taxRate | Object | |
currency | Object | |
validation | ||
label | true | |
compact | false | |
error | Object | |
disabled | false | |
enableInheritance | Boolean | false |
disableSuffix | Boolean | false |
Method name | Parameters |
---|---|
onLockSwitch | No parameters |
onPriceGrossChange | value |
onPriceGrossChangeDebounce | No parameters |
onPriceNetChange | value |
onPriceNetChangeDebounce | No parameters |
convertNetToGross | value |
convertGrossToNet | value |
requestTaxValue | value outputType |
convertPrice | value |
Variable name | Value |
---|---|
$sw-price-field-lock-color-default | $color-gutenberg ($color-darkgray-200) |
$sw-price-field-lock-color-locked | $color-shopware-blue ($color-shopware-brand-500) |
$sw-price-field-suffix-font-size | 20px |
$sw-price-field-suffix-font-weight | 400 |