Currency
Use currency type to display decimal values in a currency format.
<q-grid>
<q-grid-columns>
<q-grid-column type="currency" key="cost">
</q-grid-column>
</q-grid-columns>
</q-grid>
- Use
code
property to set the ISO 4217 currency code, such asUSD
for the US dollar andEUR
for the euro. The default isUSD
.
<q-grid>
<q-grid-columns>
<q-grid-column type="currency" code="EUR">
<ng-template for="body" let-$cell>
<span>{{$cell.value | qGridCurrency: $cell.column.code}}</span>
</ng-template>
</q-grid-column>
</q-grid-columns>
</q-grid>
Suggested Links