Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145495 | Jun 25,2019 02:47 PM UTC | Jul 8,2019 12:08 PM UTC | Vue | 7 |
![]() |
Tags: Data Grid |
dropdownTemplate: function () {
return {
template: Vue.component('bindDropdown', {
template: `<ejs-dropdownlist id='dropdownlist' :value='dropdownInitialData' :dataSource='dropData'> </ejs-dropdownlist>`,
data: function() {
return {
dropData: ['VINET', 'TOMSP', 'HANAR', 'VICTE', 'SUPRD', 'HANAR', 'CHOPS', 'RICSU'],
}
},
computed: {
dropdownInitialData: function(e) {
return this._data.data.CustomerID;
}
}
})
}
} |
import HelloWorld2 from './HelloWorld2.vue';
myComponentTemplate: function () {
return {
template: HelloWorld2
}
} |
[HelloWorld2.Vue]
<template>
<div class="hello" id="hello">
<p>{{msg}}</p>
<button v-on:click="Click">Add 1</button>
</div>
</template>
<script>
export default {
name: 'HelloWorld2',
props: {
msg: {type:String, default:"HelloWord2"},
},
methods:{
Click(args){
alert("click triggered"+ this.$props.msg) //Accessed the props
}
}
}
</script>
|
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.