<template>
<div id="app">
<ejs-grid :dataSource="data" :editSettings="editSettings" :toolbar="toolbar" height="273px">
. . .
<e-column
field="Freight"
headerText="Freight"
textAlign="Right"
editType="numericedit"
width="120"
format="C2"
:editTemplate="editTemplate"
></e-column>
. . .
},
methods: {
editTemplate: function() {
return {
template: Vue.component("numericInput", {
components: { NumericTextBoxComponent },
template: `<numeric-text-box-component id="Freight" v-model="data.Freight" floatLabelType='Never'></numeric-text-box-component>`,
data() {
return { data: {} };
}
})
. . .
|
editTemplate: function() {
return {
template: VxTableCellEditorCheckbox (prop: <VALUE FOR PROPERTY>)
};
editTemplate: function() {
return {
template: Vue.component("numericInput", {
components: { NumericTextBoxComponent },
template: `<numeric-text-box-component id="Freight" value="10" floatLabelType='Never'></numeric-text-box-component>`, //set default value when adding the record
data() {
return { data: {} };
}
})
};
} |