I am implementing deletion of contacts from a data table in lightning. Used checkboxes to select/unselect the contacts.Created Delete Contact button at the header level.
Now I want to display the delete contact button depending on whether the checkbox is selected or not as a SEPERATE COMPONENT which is in other panel component but not on the header.If checkbox is not selected then the Delete contact button as a seperate component should not be displayed. I mean to say instead of a button here can we create a panel component to display the Delete contact button component depending on the checkbox selected or not instead of displaying it on the header every time.
Can you let me know how to do this and how to communicate between the components when doing this?