You need to sign in to do that
Don't have an account?
Hariprasath
Need to show a Modal Box as Child component in the Parent Component
I have two lightning components and in my Parent Component I have a Data Table to show the records that I query from the Custom settings and in each row, I have Edit and Delete Button. When I click the Edit button there I need to show a Modal Box(Child Component) to edit the custom settings Record? Is there any sample to do it? I am new to lightning and my knowledge of Lightning is the beginner.
you have to build your component in this way I am Sending you the example
Example -
For More Information refer to the following link --
https://www.jitendrazaa.com/blog/salesforce/dynamically-instantiate-and-destroy-lightning-components-modal-dialog-component/
If found this helpfull mark it as best so that it helps others in solving the same.
Thanks
Akshay
Please try the below code with the lightning data table and with the modal popup for child component and with edit and delete functionality.
Here is your parent component. First, you need to save this component with controllersjs and helper js.
Here is your Child Component you need to save in new component with contollerjs and helperjs.
Here is your apex class
Please select as best answer if it helps you.
Thank You,
Ajay Dubedi