0
component.set('v.columns', [
            {label: 'Product Name', fieldName: 'Name', type: 'Text'},
            {label: 'Total Quantity', fieldName: 'Total_Quantity__c', type: 'number'},
            {label: 'Sold', fieldName: 'Sold__c', type: 'number'},
            {label: 'Available', fieldName: 'Available__c', type: 'number'},
            {label: 'Price', fieldName: 'Price__c', type: 'currency', typeAttributes: { currencyCode: 'BDT'}},
            {label: 'Category', fieldName: 'Category__c', type: 'Picklist'},
            {label: 'Sub Category', fieldName: 'Sub_Category__c', type: 'Sub_Category__c'},
            {iconName:'utility:picklist_type', type: 'action', typeAttributes : {rowActions:tablActions}}
        ]);

Here is the image for better understand

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.