Picklist in Lightning Datatable

Picklist in Lightning Datatable

Hello Everyone,

I have been trying to add a pickist in standard Lighting Datatable for a while as picklist type is not supported in Lighting Datatable and I needed it in one of my projects.

Out of curiosity, I spent some time investigating on how standard Lightning components can be extended. With some research, I found that LWC standards components can be easily extended as most of them provide interfaces which enables you to write extra logic on top of existing functionality.

By going through couple of articles on forums, I am able to extend the standard Lightning Datatable with my new custom data table which holds this new extra picklist type as well.

Screenshots


Full Code

Full code with example can be found on this link Picklist in Lightning Datatable - Playground. This link has all technical details along with its usage

Lakshay Katney Avatar

Lakshay Katney

Saleforce developer by profession but I like to work with various technologies.I blog about Force.com, Hybrid Apps, PhoneGap, AngularJS, BackboneJS, JavaScript in general. I am Angular & NodeJS fan.

Read More
Share this page
Top 15 Posts