0

I am trying to build a datatable with selectOption as one of the table columns. i.e.

doInit : function(component, event, helper){
    component.set('v.columns', [
        {label: 'Booking Name', fieldName: 'bookingName', type: 'text'},
        {label: 'Cancellation Date', fieldName: 'canReqDate', type: 'date'},
        {label: 'Reason', fieldName: 'canReason', type: 'option'},
    ]);
    var recordId = component.get("v.recordId");
    ...
},

I have looked at the documentation but selectoption/option isn't one of them. is there a way round this?

1

You can take a look at LWC version of datadable (lightning-datatable). There is a possibility to create custom data types using LWC and that may solve your issue.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.