{"action":"created","issue":{"url":"https://api.github.com/repos/miguelcobain/ember-cli-selectize/issues/30","labels_url":"https://api.github.com/repos/miguelcobain/ember-cli-selectize/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/miguelcobain/ember-cli-selectize/issues/30/comments","events_url":"https://api.github.com/repos/miguelcobain/ember-cli-selectize/issues/30/events","html_url":"https://github.com/miguelcobain/ember-cli-selectize/issues/30","id":58762458,"number":30,"title":"Add action for \"onSelect\"","user":{"login":"SirZach","id":1113484,"avatar_url":"https://avatars.githubusercontent.com/u/1113484?v=3","gravatar_id":"","url":"https://api.github.com/users/SirZach","html_url":"https://github.com/SirZach","followers_url":"https://api.github.com/users/SirZach/followers","following_url":"https://api.github.com/users/SirZach/following{/other_user}","gists_url":"https://api.github.com/users/SirZach/gists{/gist_id}","starred_url":"https://api.github.com/users/SirZach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirZach/subscriptions","organizations_url":"https://api.github.com/users/SirZach/orgs","repos_url":"https://api.github.com/users/SirZach/repos","events_url":"https://api.github.com/users/SirZach/events{/privacy}","received_events_url":"https://api.github.com/users/SirZach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-24T16:22:49Z","updated_at":"2015-03-09T14:10:57Z","closed_at":null,"body":"Let's say I want to trigger some event on the page when the user selects something from the selectize component. Currently, I would have to set an observer on the value that selectize is bound to and fire an action that way. I realize the native ember select view doesn't offer this but it would be nice to have."},"comment":{"url":"https://api.github.com/repos/miguelcobain/ember-cli-selectize/issues/comments/77859795","html_url":"https://github.com/miguelcobain/ember-cli-selectize/issues/30#issuecomment-77859795","issue_url":"https://api.github.com/repos/miguelcobain/ember-cli-selectize/issues/30","id":77859795,"user":{"login":"sandstrom","id":122287,"avatar_url":"https://avatars.githubusercontent.com/u/122287?v=3","gravatar_id":"","url":"https://api.github.com/users/sandstrom","html_url":"https://github.com/sandstrom","followers_url":"https://api.github.com/users/sandstrom/followers","following_url":"https://api.github.com/users/sandstrom/following{/other_user}","gists_url":"https://api.github.com/users/sandstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/sandstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandstrom/subscriptions","organizations_url":"https://api.github.com/users/sandstrom/orgs","repos_url":"https://api.github.com/users/sandstrom/repos","events_url":"https://api.github.com/users/sandstrom/events{/privacy}","received_events_url":"https://api.github.com/users/sandstrom/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T14:10:57Z","updated_at":"2015-03-09T14:10:57Z","body":"I'd say `selected` would be a good primary action, and then secondaries for `create` etc. This would still ensure isolation, since the action name is bound on the 'outside' (i.e. the application would still work if the selectbox component is replaced).\r\n\r\n```\r\n{{ember-selectize\r\n  content=controller.countries\r\n  optionValuePath=\"content.id\"\r\n  optionLabelPath=\"content.name\"\r\n  action='countrySelected'\r\n  created='countryCreated'\r\n}}\r\n```\r\n\r\nWhat do you think @miguelcobain, sounds like a good structure?\r\n\r\nMore on components and events: \r\nhttp://emberjs.com/guides/components/sending-actions-from-components-to-your-application/"}}