Interesting topic. Let us explore Lightning-Datatable in LWC in 3 steps.
➤ Objective of exercise
2. Adding Buttons inside Datatable rows, Fetching Selected rows and performing action on them
3. DataTable with In-Line editing and save functionality.
* All this in LWC :)
Quick GitHub Link : Click Here!
➤ Fetch Contacts, populate data table and implement Search Functionality using inputs.
➤ Adding Buttons inside Datatable rows, Fetching Selected rows and performing action on them.
➤ Datatable with In-line editing and save functionality
Please share your feedback and suggestions in the comments section below.
Thanks,
Saksham Mahendru | msaksham18@gmail.com
Nice Article ..
ReplyDeleteVery informative!
ReplyDeleteIs there any possibility to show lookup fields in the table.
ReplyDeleteThat lookup needs to be a custom one.
DeleteIt would be good if you keep code in a single shotlike , this is contoller , this lwc component. people who are new to lwc cannot understand if you split the code like above and keep. Just a suggestion. Nice blog and example
ReplyDeleteYes.. Agreed. I will be revamping this by weekend and include inline edit as well. Thanks for suggestion. :)
DeleteDone. 🙂👍
Delete