{"action":"created","issue":{"url":"https://api.github.com/repos/bevacqua/insignia/issues/7","labels_url":"https://api.github.com/repos/bevacqua/insignia/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/bevacqua/insignia/issues/7/comments","events_url":"https://api.github.com/repos/bevacqua/insignia/issues/7/events","html_url":"https://github.com/bevacqua/insignia/issues/7","id":59798459,"number":7,"title":"Feature requests","user":{"login":"agladysh","id":38239,"avatar_url":"https://avatars.githubusercontent.com/u/38239?v=3","gravatar_id":"","url":"https://api.github.com/users/agladysh","html_url":"https://github.com/agladysh","followers_url":"https://api.github.com/users/agladysh/followers","following_url":"https://api.github.com/users/agladysh/following{/other_user}","gists_url":"https://api.github.com/users/agladysh/gists{/gist_id}","starred_url":"https://api.github.com/users/agladysh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agladysh/subscriptions","organizations_url":"https://api.github.com/users/agladysh/orgs","repos_url":"https://api.github.com/users/agladysh/repos","events_url":"https://api.github.com/users/agladysh/events{/privacy}","received_events_url":"https://api.github.com/users/agladysh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-04T13:39:26Z","updated_at":"2015-03-04T14:16:21Z","closed_at":null,"body":"I'm looking for an advanced tag input control. Insignia is almost what I need, except for a few features. I wonder, if Insignia can be adjusted to provide means to implement them.\r\n\r\n* *Store objects as tags.* E.g. `{ kind: 'fruit', value: 'orange' }` --> `[fruit icon] orange`. Or else provide `render()` method for me to render tags in a custom way: `fruit:orange` --> `[fruit icon] orange`. User would input metainformation for a tag (i.e.`kind`), for example, via a typeahead menu. I would like to keep tags editable as they are, and let user change the `kind` as well as `value`. Initially it would be OK if a such object tag would simply devolve to `fruit:orange` text upon edit. \r\n\r\n* *Auto-sortable tags.* I need to be able to sort tags automatically, using complicated sort criteria. Ideally, I need to be able to provide sorting (not comparison) function to the Insignia.\r\n\r\n* *Line breaks.* I need to be able to clear the line before certain tags. E.g. tag `newline` should always be placed on a beginning of a new line in the tag field (equivalent of always injecting `<br/>` before it). Probably could be done via `render()` method discussed above.\r\n\r\n* *Custom HTML.* Optional. I'd like to be able to inject custom HTML before / after certain tags to provide extra UI elements (for example \"insert another specific tag here\" button).\r\n\r\n* *Typeahead.* We discussed it in #4."},"comment":{"url":"https://api.github.com/repos/bevacqua/insignia/issues/comments/77164531","html_url":"https://github.com/bevacqua/insignia/issues/7#issuecomment-77164531","issue_url":"https://api.github.com/repos/bevacqua/insignia/issues/7","id":77164531,"user":{"login":"bevacqua","id":934293,"avatar_url":"https://avatars.githubusercontent.com/u/934293?v=3","gravatar_id":"","url":"https://api.github.com/users/bevacqua","html_url":"https://github.com/bevacqua","followers_url":"https://api.github.com/users/bevacqua/followers","following_url":"https://api.github.com/users/bevacqua/following{/other_user}","gists_url":"https://api.github.com/users/bevacqua/gists{/gist_id}","starred_url":"https://api.github.com/users/bevacqua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bevacqua/subscriptions","organizations_url":"https://api.github.com/users/bevacqua/orgs","repos_url":"https://api.github.com/users/bevacqua/repos","events_url":"https://api.github.com/users/bevacqua/events{/privacy}","received_events_url":"https://api.github.com/users/bevacqua/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T14:16:21Z","updated_at":"2015-03-04T14:16:21Z","body":"So, a clean solution that doesn't involve any changes to rome would be:\r\n\r\n```js\r\ninsignia(input);\r\ninput.parentElement.insertBefore(placard, input);\r\n```"}}