Hi,
I'm trying to create an active column area by making use of AngularJS. I followed the JS example by adding an area:
areas: [ {right: 5, top: 1, bottom: 1, width: 18, html: "+", cssClass: "add-button", action: "JavaScript", js: function(args) { console.log(args); add();}} ]
Which basically causes the following error:
[ng:cpws] http://errors.angularjs.org/1.5.8/ng/cpws
AngularJS Code:
vm.config = {
columns: [
{ name: 'Analysis', id: '1', barColor: '#f9ba25', areas: [{ right: 5, top: 1, bottom: 1, width: 18, html: '+', cssClass: 'add-button', action: 'JavaScript', js: function (args) { vm.add(args); } }] },
{ name: 'Draft', id: '2' },
{ name: 'Testing', id: '3' }
],
cards: [
{ id: 1, "name": 'Task 1', column: '1', text: 'This is a description of task #1.' },
{ id: 2, "name": 'Task 2', column: '1', text: 'This is a description of task #2.', barColor: '#1155CC' },
{ id: 3, "name": 'Task 3', column: '1', text: 'This is a description of task #3.', barColor: '#999' },
{ id: 4, "name": 'Task 4', column: '1', text: 'This is a description of task #4.', barColor: '#6AA84F' },
{ id: 5, "name": 'Task 5', column: '2', text: 'This is a description of task #5.', barColor: '#F6B26B' }
]
};
Is this possible? If so, what am I doing wrong?
Thanks in advance!