Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150797 | Jan 20,2020 01:06 PM UTC | Jan 30,2020 01:03 PM UTC | Vue | 7 |
![]() |
Tags: Data Grid |
<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: {} };
}
})
};
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.