{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-select/issues/152","labels_url":"https://api.github.com/repos/angular-ui/ui-select/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-select/issues/152/comments","events_url":"https://api.github.com/repos/angular-ui/ui-select/issues/152/events","html_url":"https://github.com/angular-ui/ui-select/issues/152","id":39925988,"number":152,"title":"Proposal: adding static choices","user":{"login":"dimirc","id":5034942,"avatar_url":"https://avatars.githubusercontent.com/u/5034942?v=3","gravatar_id":"","url":"https://api.github.com/users/dimirc","html_url":"https://github.com/dimirc","followers_url":"https://api.github.com/users/dimirc/followers","following_url":"https://api.github.com/users/dimirc/following{/other_user}","gists_url":"https://api.github.com/users/dimirc/gists{/gist_id}","starred_url":"https://api.github.com/users/dimirc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimirc/subscriptions","organizations_url":"https://api.github.com/users/dimirc/orgs","repos_url":"https://api.github.com/users/dimirc/repos","events_url":"https://api.github.com/users/dimirc/events{/privacy}","received_events_url":"https://api.github.com/users/dimirc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular-ui/ui-select/milestones/7","html_url":"https://github.com/angular-ui/ui-select/milestones/0.12.x","labels_url":"https://api.github.com/repos/angular-ui/ui-select/milestones/7/labels","id":749132,"number":7,"title":"0.12.x","description":null,"creator":{"login":"dimirc","id":5034942,"avatar_url":"https://avatars.githubusercontent.com/u/5034942?v=3","gravatar_id":"","url":"https://api.github.com/users/dimirc","html_url":"https://github.com/dimirc","followers_url":"https://api.github.com/users/dimirc/followers","following_url":"https://api.github.com/users/dimirc/following{/other_user}","gists_url":"https://api.github.com/users/dimirc/gists{/gist_id}","starred_url":"https://api.github.com/users/dimirc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimirc/subscriptions","organizations_url":"https://api.github.com/users/dimirc/orgs","repos_url":"https://api.github.com/users/dimirc/repos","events_url":"https://api.github.com/users/dimirc/events{/privacy}","received_events_url":"https://api.github.com/users/dimirc/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":0,"state":"open","created_at":"2014-08-11T02:11:38Z","updated_at":"2015-03-11T07:00:04Z","due_on":null,"closed_at":null},"comments":28,"created_at":"2014-08-11T03:36:47Z","updated_at":"2015-03-12T08:48:43Z","closed_at":null,"body":"There are cases where we might need to show some static info at the dropdown. We could add a new directive `ui-select-static-choice` and I was thinking of something like this:\r\n \r\n```html\r\n  <ui-select ng-model=\"person.selected\">\r\n    <ui-select-match placeholder=\"Select a person in the list or search his name/age...\">{{$select.selected.name}}</ui-select-match>\r\n    <ui-select-choices repeat=\"person in people | propsFilter: {name: $select.search, age: $select.search}\">\r\n        <div ng-bind-html=\"person.name | highlight: $select.search\"></div>\r\n    </ui-select-choices>\r\n\r\n    <ui-select-static-choice ng-if=\"!$select.items.length\">\r\n        No results for <b>{{$select.search}}</b>\r\n    </ui-select-choices-static>\r\n\r\n    <ui-select-static-choice ng-if=\"$select.items.length<10\">\r\n        <button ng-click=\"fetchFromServer($select.search)\">Search more results on server</button>\r\n    </ui-select-choices-static>\r\n\r\n  </ui-select>\r\n```"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-select/issues/comments/78442442","html_url":"https://github.com/angular-ui/ui-select/issues/152#issuecomment-78442442","issue_url":"https://api.github.com/repos/angular-ui/ui-select/issues/152","id":78442442,"user":{"login":"ahendel","id":10629336,"avatar_url":"https://avatars.githubusercontent.com/u/10629336?v=3","gravatar_id":"","url":"https://api.github.com/users/ahendel","html_url":"https://github.com/ahendel","followers_url":"https://api.github.com/users/ahendel/followers","following_url":"https://api.github.com/users/ahendel/following{/other_user}","gists_url":"https://api.github.com/users/ahendel/gists{/gist_id}","starred_url":"https://api.github.com/users/ahendel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahendel/subscriptions","organizations_url":"https://api.github.com/users/ahendel/orgs","repos_url":"https://api.github.com/users/ahendel/repos","events_url":"https://api.github.com/users/ahendel/events{/privacy}","received_events_url":"https://api.github.com/users/ahendel/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T08:48:43Z","updated_at":"2015-03-12T08:48:43Z","body":"I'm looking forward to having it ;-)"}}