{"action":"created","issue":{"url":"https://api.github.com/repos/GustavoCostaW/ngc-float-button/issues/12","repository_url":"https://api.github.com/repos/GustavoCostaW/ngc-float-button","labels_url":"https://api.github.com/repos/GustavoCostaW/ngc-float-button/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/GustavoCostaW/ngc-float-button/issues/12/comments","events_url":"https://api.github.com/repos/GustavoCostaW/ngc-float-button/issues/12/events","html_url":"https://github.com/GustavoCostaW/ngc-float-button/issues/12","id":292230918,"node_id":"MDU6SXNzdWUyOTIyMzA5MTg=","number":12,"title":"ngc-float-button.component events triggered when float-item is clicked","user":{"login":"xxNoxiouSxx","id":24546346,"node_id":"MDQ6VXNlcjI0NTQ2MzQ2","avatar_url":"https://avatars1.githubusercontent.com/u/24546346?v=4","gravatar_id":"","url":"https://api.github.com/users/xxNoxiouSxx","html_url":"https://github.com/xxNoxiouSxx","followers_url":"https://api.github.com/users/xxNoxiouSxx/followers","following_url":"https://api.github.com/users/xxNoxiouSxx/following{/other_user}","gists_url":"https://api.github.com/users/xxNoxiouSxx/gists{/gist_id}","starred_url":"https://api.github.com/users/xxNoxiouSxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xxNoxiouSxx/subscriptions","organizations_url":"https://api.github.com/users/xxNoxiouSxx/orgs","repos_url":"https://api.github.com/users/xxNoxiouSxx/repos","events_url":"https://api.github.com/users/xxNoxiouSxx/events{/privacy}","received_events_url":"https://api.github.com/users/xxNoxiouSxx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-01-28T19:28:01Z","updated_at":"2018-07-08T12:28:35Z","closed_at":"2018-02-13T22:43:08Z","author_association":"NONE","body":"Just wanted to bring this to your attention, when clicking the ngc-float-item-button it triggers the events: Subject on the ngc-float-button. \r\n\r\nI needed a scenario when the parent button is clicked, it will have an independent click event from the children. I had to add the same @clicked output event emitter that is on the float-item to the float-button to do so.\r\n\r\nhere were my manual changes to the compiled library for anyone needing this. \r\n\r\n1. ngc-float-button.component.js line #13 add **EventEmitter** to the @angular/core import\r\n2. in the constructor (i put mine on line #25) add **this.clicked = new EventEmitter();**\r\n3. in line #165 I added **'clicked': [{ type: Output },],**\r\n\r\n- May be a good idea to make the float-button event independent from the float-item events if there is not already a way to do this.\r\n- If there is a way, I couldn't figure it out and apologize for creating this.\r\n\r\nall in all thank you for all your work on this library, I needed this functionality in my project and your library saved me a lot of time coding it myself.\r\n"},"comment":{"url":"https://api.github.com/repos/GustavoCostaW/ngc-float-button/issues/comments/403284407","html_url":"https://github.com/GustavoCostaW/ngc-float-button/issues/12#issuecomment-403284407","issue_url":"https://api.github.com/repos/GustavoCostaW/ngc-float-button/issues/12","id":403284407,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzI4NDQwNw==","user":{"login":"yavarnia","id":32850494,"node_id":"MDQ6VXNlcjMyODUwNDk0","avatar_url":"https://avatars1.githubusercontent.com/u/32850494?v=4","gravatar_id":"","url":"https://api.github.com/users/yavarnia","html_url":"https://github.com/yavarnia","followers_url":"https://api.github.com/users/yavarnia/followers","following_url":"https://api.github.com/users/yavarnia/following{/other_user}","gists_url":"https://api.github.com/users/yavarnia/gists{/gist_id}","starred_url":"https://api.github.com/users/yavarnia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yavarnia/subscriptions","organizations_url":"https://api.github.com/users/yavarnia/orgs","repos_url":"https://api.github.com/users/yavarnia/repos","events_url":"https://api.github.com/users/yavarnia/events{/privacy}","received_events_url":"https://api.github.com/users/yavarnia/received_events","type":"User","site_admin":false},"created_at":"2018-07-08T12:28:35Z","updated_at":"2018-07-08T12:28:35Z","author_association":"NONE","body":"`<div class=\"action-buttons\">\r\n                  <ngc-float-button icon=\"more_horiz\" direction=\"right\" color=\"#f86c6b\">\r\n                    <ngc-float-item-button (click)=\"referralFor('Revoke',item)\"  icon=\"clear\" content=\"1\"></ngc-float-item-button>\r\n                    <ngc-float-item-button (click)=\"referralFor('Assignment',item)\" icon=\"assignment_ind\" content=\"2\"></ngc-float-item-button>\r\n                    <ngc-float-item-button (click)=\"referralFor('Suspension',item)\" icon=\"pause\" content=\"3\"></ngc-float-item-button>\r\n                    <ngc-float-item-button (click)=\"referralFor('Info',item)\" icon=\"reply_all\" content=\"4\"></ngc-float-item-button>\r\n                    <ngc-float-item-button (click)=\"referralFor('Comments',item)\" icon=\"comment\" content=\"5\"></ngc-float-item-button>\r\n</ngc-float-button>`"}}
{"actor":{"display_login":"yavarnia"}}