{"action":"created","issue":{"url":"https://api.github.com/repos/troolee/gridstack.js/issues/89","labels_url":"https://api.github.com/repos/troolee/gridstack.js/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/troolee/gridstack.js/issues/89/comments","events_url":"https://api.github.com/repos/troolee/gridstack.js/issues/89/events","html_url":"https://github.com/troolee/gridstack.js/issues/89","id":60070569,"number":89,"title":"hide widget","user":{"login":"troolee","id":137888,"avatar_url":"https://avatars.githubusercontent.com/u/137888?v=3","gravatar_id":"","url":"https://api.github.com/users/troolee","html_url":"https://github.com/troolee","followers_url":"https://api.github.com/users/troolee/followers","following_url":"https://api.github.com/users/troolee/following{/other_user}","gists_url":"https://api.github.com/users/troolee/gists{/gist_id}","starred_url":"https://api.github.com/users/troolee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troolee/subscriptions","organizations_url":"https://api.github.com/users/troolee/orgs","repos_url":"https://api.github.com/users/troolee/repos","events_url":"https://api.github.com/users/troolee/events{/privacy}","received_events_url":"https://api.github.com/users/troolee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/troolee/gridstack.js/milestones/5","html_url":"https://github.com/troolee/gridstack.js/milestones/v0.2.3","labels_url":"https://api.github.com/repos/troolee/gridstack.js/milestones/5/labels","id":922606,"number":5,"title":"v0.2.3","description":null,"creator":{"login":"troolee","id":137888,"avatar_url":"https://avatars.githubusercontent.com/u/137888?v=3","gravatar_id":"","url":"https://api.github.com/users/troolee","html_url":"https://github.com/troolee","followers_url":"https://api.github.com/users/troolee/followers","following_url":"https://api.github.com/users/troolee/following{/other_user}","gists_url":"https://api.github.com/users/troolee/gists{/gist_id}","starred_url":"https://api.github.com/users/troolee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troolee/subscriptions","organizations_url":"https://api.github.com/users/troolee/orgs","repos_url":"https://api.github.com/users/troolee/repos","events_url":"https://api.github.com/users/troolee/events{/privacy}","received_events_url":"https://api.github.com/users/troolee/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":17,"state":"open","created_at":"2015-01-05T18:49:08Z","updated_at":"2015-03-13T02:57:26Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-03-06T07:55:08Z","updated_at":"2015-03-18T01:36:41Z","closed_at":"2015-03-09T06:35:01Z","body":"@zhaoyoubing says:\r\n\r\n> I also suggest to add a \"hide\" or \"minimize\" function. With the \"hide\" function, the re-layout without deletion from DOM can also be implemented.\r\n"},"comment":{"url":"https://api.github.com/repos/troolee/gridstack.js/issues/comments/82672372","html_url":"https://github.com/troolee/gridstack.js/issues/89#issuecomment-82672372","issue_url":"https://api.github.com/repos/troolee/gridstack.js/issues/89","id":82672372,"user":{"login":"rcastillog","id":10451269,"avatar_url":"https://avatars.githubusercontent.com/u/10451269?v=3","gravatar_id":"","url":"https://api.github.com/users/rcastillog","html_url":"https://github.com/rcastillog","followers_url":"https://api.github.com/users/rcastillog/followers","following_url":"https://api.github.com/users/rcastillog/following{/other_user}","gists_url":"https://api.github.com/users/rcastillog/gists{/gist_id}","starred_url":"https://api.github.com/users/rcastillog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcastillog/subscriptions","organizations_url":"https://api.github.com/users/rcastillog/orgs","repos_url":"https://api.github.com/users/rcastillog/repos","events_url":"https://api.github.com/users/rcastillog/events{/privacy}","received_events_url":"https://api.github.com/users/rcastillog/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T01:36:41Z","updated_at":"2015-03-18T01:36:41Z","body":"Hi,\r\nI tried this functionality. I use detach mode to hide the element and then use add_widget to make it visible (I don't know if this was the correct way to do this), it works the first time (hide and show), but after next try to hide it, the widget's place was used by another widget (as it should works), but the one that should be eliminated was placed over, ignoring the occupied space, as it was placed on its own grid, it can be dragged around and placed over other ones freely.\r\n\r\nProbably this is because I'm using add_widget and it is not the best option to show the hidden component, could you give an advice? \r\nThanks."}}