<ejs-grid :dataSource="data" height='315px'>
<e-columns>
<e-column field='OrderID' headerText='Order ID' textAlign='Right' width=90></e-column>
<e-column field='Freight' headerText='Freight' textAlign='Right' format='C2'></e-column>
<e-column field='OrderDate' headerText='Order Date' format='yMd' type='date'></e-column>
</e-columns>
</ejs-grid>
|
<template>
<div id="app">
<ejs-grid id="Grid" ref="grid" :dataSource="data" :allowPaging="true">
<e-columns>
<e-column field="OrderID" headerText="Order ID" width="90"></e-column>
<e-column field="Freight" headerText="Freight" :format="format" width="90"></e-column>
<e-column
field="ShipCity"
headerText="Telefon"
width="150"
textAlign="Center"
></e-column>
</e-columns>
</ejs-grid>
</div>
</template>
<script>
. . .
export default {
data() {
return {
data: data,
format:{ format:'C5' , useGrouping: false,
minimumSignificantDigits:1, maximumSignificantDigits:3}
}
}
};
</script> |