I am facing very strange and difficult problem. I am developing a web app, where I have created few widgets. If I click on Icon the widget editor will appear in a modular pop-up and user can enter his data and the that data will be presented on dashboard as label. I have "edit" button above the label which is placed on the dashboard, now I want to add a delete button, suppose the user will add the widget on the dashboard and later he finds he doesn’t require that dashboard so he clicks on delete button the widget should be deleted, if user feels he wants that widget again after deleting, when he clicks on the icon of the particular widget which he deleted previously, the widget should appear again. I tried to do that but once I click on the delete button I am able to delete the widget but When I click on the icon of the widget I am not able to get in back.
Please help me to solve this issue.
Just taking a guess at what you’re looking to do, here’s an example of adding a div that you can close again:
Setup:
Use:
Live example
Obviously the disabling of the button is only relevant if you want that; if you don’t, just use it like this:
Setup:
Use:
Live example