Skip to content

Instantly share code, notes, and snippets.

@amitkumarRoy
Created July 19, 2018 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitkumarRoy/46fab6b7d1dafc76c62443a3b6449208 to your computer and use it in GitHub Desktop.
Save amitkumarRoy/46fab6b7d1dafc76c62443a3b6449208 to your computer and use it in GitHub Desktop.
({
init: function (cmp, event, helper) {
cmp.set('v.myColumns', [
{ label: 'Contact Name', fieldName: 'Name', type: 'text',editable: true},
{ label: 'Phone', fieldName: 'Phone', type: 'phone',editable: true},
{ label: 'Email', fieldName: 'Email', type: 'email',editable: true}
]);
helper.getData(cmp);
},
saveTable:function (cmp,event,helper)
{
helper.onSave(cmp,event);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment