({
method2 : function(component,event,helper){
component.set("v.mycolumns",[{label: 'Subject ', fieldName: 'Subject', type: 'string'},
{label: 'Priority', fieldName: 'Priority', type: 'list'},
{label: 'Status', fieldName: 'Status', type: 'list'},
{label: 'Createddate', fieldName: 'CreatedDate', type: 'Date'},
{label: 'Owner Name', fieldName: 'Task.Owner', type: 'String'} ] );
var action =component.get("c.fetchTasklist");
action.setCallback(this, function(response){
action.setParams({
});
var state = response.getState();
if (state === "SUCCESS") {
component.set("v.Tasklist", response.getReturnValue());
}
});
$A.enqueueAction(action);
}
})
Best Answer
Actually nested properties are not supported by lightning:datatable yet. But we can achieve it by adding the nested properties on the main object as a property like below:
Hope this is what you are looking for.