ForceLearn

Display List of Accounts with delete button on Lightning Component

Sharing is caring!

Today Iam here to explain how to display list of accounts with delete button on Lightning component

Business case :  User need to show list of accounts and with delete button on display their page

Solution : we helped by designing lightning component

Step1 : Create a controller class
Path setup- UserMenu – Developer Console -File-New Apex Class

AccountsController

Step2 : Create a lightning Component
Path setup- UserMenu – Developer Console -File-New Lightning Component

Account List Component

Step3 : Create Controller for lightning Component
Path : Click on controller left side of our lightning component or with shortcut ctrl+shift+2

Account List Controller

 

Step4 : Create helper for lightning Component
Path : Click on helper left side of our lightning component or with shortcut ctrl+shift+3

Account List Helper

 

Step5 : Create lightning Component application
Path : setup- UserMenu – Developer Console -File-New Lightning Application

Account List Application

 

Hola !! , we have seen list of accounts with delete button

If you find intersting please share it to others and subscribe us 🙂

Keep watching us for more updates No tags for this post.

forcelearn

Like Us for FB Page

Trailhead Profile

Subscribe Us