You need to sign in to do that
Don't have an account?
MaheemSam
popup page should not display, When user confirms not to display.
Hi,
I want to implement a logic in pop-page component, add a checkbox on page when user confirms not to display page it should not display further. How to implement this logic.
Thanks
Sudhir
I want to implement a logic in pop-page component, add a checkbox on page when user confirms not to display page it should not display further. How to implement this logic.
Thanks
Sudhir
Greetings to you!
You can use localStorage 'tempSession'. You need to use init handler so that when component refreshes it should get tempSession. And you need to set its value on button or checkbox click (change according to your requirement). Below is a sample code which might help you. If you click on a button without selecting checkbox it will display modal again on refresh but if you click on a button after selecting a checkbox the modal will not show again for that session.
Kindly modify the code as per your requirement.
Component:
Controller:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas