Activity › Forums › Salesforce® Discussions › What is the Difference between data and columns fields in Salesforce lightning datatable?

  • shradha jain

    Member
    August 14, 2018 at 8:18 AM

    Hello Anurag,

    In the column field of datatable we define the column label,fieldname and type.The columns are set using column field.

    In the Data field of datatable , the data returned from controller is set.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Pros & Cons of Lightning Component vs. 3rd party frameworks in Salesforce UI development

Video in

Nikita drops by to share his invaluable experience of using popular 3rd party frameworks in Salesforce. http://media.blubrry.com/salesforceway/audio.xmcdn.com/group42/M05/25/57/wKgJ81rXk6XjaZIAAU_I_KtprFM998.m4a