{"action":"created","issue":{"url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/80","labels_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/80/comments","events_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/80/events","html_url":"https://github.com/running-coder/jquery-typeahead/issues/80","id":107308208,"number":80,"title":"Option to use a function to resolve group label","user":{"login":"dreamagex","id":1435391,"avatar_url":"https://avatars.githubusercontent.com/u/1435391?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamagex","html_url":"https://github.com/dreamagex","followers_url":"https://api.github.com/users/dreamagex/followers","following_url":"https://api.github.com/users/dreamagex/following{/other_user}","gists_url":"https://api.github.com/users/dreamagex/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamagex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamagex/subscriptions","organizations_url":"https://api.github.com/users/dreamagex/orgs","repos_url":"https://api.github.com/users/dreamagex/repos","events_url":"https://api.github.com/users/dreamagex/events{/privacy}","received_events_url":"https://api.github.com/users/dreamagex/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/running-coder/jquery-typeahead/labels/New%20Feature","name":"New Feature","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-19T03:50:37Z","updated_at":"2015-09-22T03:07:00Z","closed_at":null,"body":"I have a cause where I have a \"type\" property on my json objects, but I can't use it to create a group label. If we were able to pass a function somehow to the group option, it would be more flexible to create the label."},"comment":{"url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/comments/142167726","html_url":"https://github.com/running-coder/jquery-typeahead/issues/80#issuecomment-142167726","issue_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/80","id":142167726,"user":{"login":"running-coder","id":7377382,"avatar_url":"https://avatars.githubusercontent.com/u/7377382?v=3","gravatar_id":"","url":"https://api.github.com/users/running-coder","html_url":"https://github.com/running-coder","followers_url":"https://api.github.com/users/running-coder/followers","following_url":"https://api.github.com/users/running-coder/following{/other_user}","gists_url":"https://api.github.com/users/running-coder/gists{/gist_id}","starred_url":"https://api.github.com/users/running-coder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/running-coder/subscriptions","organizations_url":"https://api.github.com/users/running-coder/orgs","repos_url":"https://api.github.com/users/running-coder/repos","events_url":"https://api.github.com/users/running-coder/events{/privacy}","received_events_url":"https://api.github.com/users/running-coder/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T03:07:00Z","updated_at":"2015-09-22T03:07:00Z","body":"hey dreamagex, have you looked inside the group option?\r\n\r\nIf set to string, the results will be grouped by the corresponding object key.\r\nEx: group: \"conference\" will group the hockey teams by \"Western\" and \"Eastern\" conferences in hockey_v1 demo\r\nIf an Array is set the second index will set a custom header text.\r\nEx: group: [\"conference\", \"{{group}} conference Hockey Teams\"], \"{{group}}\" will be replaced by the value of \"conference\""}}