Commit 298037e4 authored by Vikas's avatar Vikas

Basic button example not working

parent 56aefe66
......@@ -6,7 +6,7 @@ var Contacts_Component_ListViewExamples = VTAP.Component.Core.extend({
created() {
VTAP.Component.Register('LIST_BASIC_BUTTON',
{},
VTAP.Component.Find("BasicButton","CUSTOMMODULE"),
VTAP.Component.Load("BasicButton","Contacts"),
{module : 'Contacts'}
);
}
......@@ -15,7 +15,7 @@ var Contacts_Component_ListViewExamples = VTAP.Component.Core.extend({
var Contacts_Component_BasicButton = VTAP.Component.Core.extend({
methods : {
click() {
alert('Hooray!! my first button');
alert('Hooray!! my first button');
}
},
template : `<button class='btn btn-primary ml-3' @click="click()">Custom button</button>`
......
......@@ -11,7 +11,7 @@ var Contacts_Component_CustomDetailActionListRegistration = VTAP.Component.Core.
var Contacts_Component_CustomMoreAction = VTAP.Component.Core.extend({
methods : {
click(){
alert('clicked on custom more action');
alert('clicked on custom more action');
}
},
template:`<span class='btn btn-danger' @click=click()><i class='fa fa-cloud'></i> Custom Action</span>`
......
File mode changed from 100644 to 100755
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment