{"action":"created","issue":{"url":"https://api.github.com/repos/cmv/cmv-app/issues/424","labels_url":"https://api.github.com/repos/cmv/cmv-app/issues/424/labels{/name}","comments_url":"https://api.github.com/repos/cmv/cmv-app/issues/424/comments","events_url":"https://api.github.com/repos/cmv/cmv-app/issues/424/events","html_url":"https://github.com/cmv/cmv-app/pull/424","id":86586623,"number":424,"title":"Add icon to menu topic","user":{"login":"roemhildtg","id":5471079,"avatar_url":"https://avatars.githubusercontent.com/u/5471079?v=3","gravatar_id":"","url":"https://api.github.com/users/roemhildtg","html_url":"https://github.com/roemhildtg","followers_url":"https://api.github.com/users/roemhildtg/followers","following_url":"https://api.github.com/users/roemhildtg/following{/other_user}","gists_url":"https://api.github.com/users/roemhildtg/gists{/gist_id}","starred_url":"https://api.github.com/users/roemhildtg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roemhildtg/subscriptions","organizations_url":"https://api.github.com/users/roemhildtg/orgs","repos_url":"https://api.github.com/users/roemhildtg/repos","events_url":"https://api.github.com/users/roemhildtg/events{/privacy}","received_events_url":"https://api.github.com/users/roemhildtg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-09T12:41:48Z","updated_at":"2015-07-14T22:20:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cmv/cmv-app/pulls/424","html_url":"https://github.com/cmv/cmv-app/pull/424","diff_url":"https://github.com/cmv/cmv-app/pull/424.diff","patch_url":"https://github.com/cmv/cmv-app/pull/424.patch"},"body":"This allows for developers to modify a domNode next to the layer name when a menu click happens, for example set a font-awesome class or modify the inner html. One potential issue is the iconNode won't work with multiple icons, only one is shown at a time even if multiple font-awesome classes are set on it. \r\n\r\nSomething like this is a possibility:\r\n![capture](https://cloud.githubusercontent.com/assets/5471079/8057654/e7db7270-0e78-11e5-8cea-5aff00adea86.JPG)\r\n\r\n```JavaScript\r\n             if (r.iconNode) {\r\n                if (domClass.contains(r.iconNode, 'fa-fire')) {\r\n                    domClass.remove(r.iconNode, this.cssClasses);\r\n                } else {\r\n                    domClass.add(r.iconNode, this.cssClasses);\r\n                }\r\n            }\r\n```\r\n\r\nOpen to suggestions and discussion!"},"comment":{"url":"https://api.github.com/repos/cmv/cmv-app/issues/comments/121409414","html_url":"https://github.com/cmv/cmv-app/pull/424#issuecomment-121409414","issue_url":"https://api.github.com/repos/cmv/cmv-app/issues/424","id":121409414,"user":{"login":"roemhildtg","id":5471079,"avatar_url":"https://avatars.githubusercontent.com/u/5471079?v=3","gravatar_id":"","url":"https://api.github.com/users/roemhildtg","html_url":"https://github.com/roemhildtg","followers_url":"https://api.github.com/users/roemhildtg/followers","following_url":"https://api.github.com/users/roemhildtg/following{/other_user}","gists_url":"https://api.github.com/users/roemhildtg/gists{/gist_id}","starred_url":"https://api.github.com/users/roemhildtg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roemhildtg/subscriptions","organizations_url":"https://api.github.com/users/roemhildtg/orgs","repos_url":"https://api.github.com/users/roemhildtg/repos","events_url":"https://api.github.com/users/roemhildtg/events{/privacy}","received_events_url":"https://api.github.com/users/roemhildtg/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T22:20:11Z","updated_at":"2015-07-14T22:20:11Z","body":"Hi @DavidSpriggs, one use case could be if a widget temporarily affects that sublayer like setting a definition query or temporarily adding a heatmap an icon could toggle to notify the user of the action on that layer"}}