{"action":"closed","issue":{"url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/711","labels_url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/711/labels{/name}","comments_url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/711/comments","events_url":"https://api.github.com/repos/eclipsesource/tabris-js/issues/711/events","html_url":"https://github.com/eclipsesource/tabris-js/issues/711","id":123145784,"number":711,"title":"Cannot dynamically hide Action icons","user":{"login":"cookieguru","id":1888809,"avatar_url":"https://avatars.githubusercontent.com/u/1888809?v=3","gravatar_id":"","url":"https://api.github.com/users/cookieguru","html_url":"https://github.com/cookieguru","followers_url":"https://api.github.com/users/cookieguru/followers","following_url":"https://api.github.com/users/cookieguru/following{/other_user}","gists_url":"https://api.github.com/users/cookieguru/gists{/gist_id}","starred_url":"https://api.github.com/users/cookieguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cookieguru/subscriptions","organizations_url":"https://api.github.com/users/cookieguru/orgs","repos_url":"https://api.github.com/users/cookieguru/repos","events_url":"https://api.github.com/users/cookieguru/events{/privacy}","received_events_url":"https://api.github.com/users/cookieguru/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-20T09:01:30Z","updated_at":"2015-12-21T20:12:18Z","closed_at":"2015-12-21T20:12:18Z","body":"Take the following code, which is mostly based on the Bookstore example:\r\n```js\r\ntabris.create('Action', {\r\n\ttitle: 'Settings',\r\n\timage: {\r\n\t\tsrc: 'https://raw.githubusercontent.com/eclipsesource/tabris-js/master/examples/bookstore/images/action_settings.png',\r\n\t\tscale: 3\r\n\t}\r\n}).on('select', function() {\r\n\tthis.visible = false;\r\n\tthis.opacity = 0;\r\n\tthis.enabled = false;\r\n\ttabris.create('Page', {\r\n\t\ttitle: 'Settings'\r\n\t}).open();\r\n});\r\n```\r\nThis places a settings icon in the top right corner of the application.  When clicked, it will open an empty page with a title Settings and a back button next to the page title.  The Settings icon is still visible, and clickable.  If the user taps the settings icon from within the settings page, another Settings page will be created on the stack forcing the user to hit a back button twice (and they'll see the first settings page, which will have all the widets in the state they were in when the page was created, which may differ from how they were left on the second settings page).  Of course this can be fixed by creating the Settings page outside the `select` handler function, but the icon will still remain visible.\r\n\r\nGiven that a Settings page usually acts as a modal page, the settings (and other) Action icons should not be visible from the settings page.  Setting `visible` nor `opacity` nor `enabled` has any effect on the Action button.  However this should not _always_ be the case as actions are not used exclusively to open modal pages."}}