{"action":"created","issue":{"url":"https://api.github.com/repos/okcoker/taggle.js/issues/39","labels_url":"https://api.github.com/repos/okcoker/taggle.js/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/okcoker/taggle.js/issues/39/comments","events_url":"https://api.github.com/repos/okcoker/taggle.js/issues/39/events","html_url":"https://github.com/okcoker/taggle.js/issues/39","id":120078179,"number":39,"title":"Add option to limit number of tags","user":{"login":"kazzkiq","id":1953194,"avatar_url":"https://avatars.githubusercontent.com/u/1953194?v=3","gravatar_id":"","url":"https://api.github.com/users/kazzkiq","html_url":"https://github.com/kazzkiq","followers_url":"https://api.github.com/users/kazzkiq/followers","following_url":"https://api.github.com/users/kazzkiq/following{/other_user}","gists_url":"https://api.github.com/users/kazzkiq/gists{/gist_id}","starred_url":"https://api.github.com/users/kazzkiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazzkiq/subscriptions","organizations_url":"https://api.github.com/users/kazzkiq/orgs","repos_url":"https://api.github.com/users/kazzkiq/repos","events_url":"https://api.github.com/users/kazzkiq/events{/privacy}","received_events_url":"https://api.github.com/users/kazzkiq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-03T01:57:54Z","updated_at":"2015-12-07T19:13:34Z","closed_at":null,"body":"It would be interesting to add an option to block tags when the number hit a mark.\r\n\r\nExample:\r\n```js\r\nlet taggle = new Taggle('my-element', { maxTags: 5 }) // don't add more tags after 5 items\r\n```\r\n\r\nRight now I think the only way to achieve this is to use `.onBeforeTagAdd()` to check number of tags and block the new addition.\r\n\r\nBadass plugin btw."},"comment":{"url":"https://api.github.com/repos/okcoker/taggle.js/issues/comments/162628393","html_url":"https://github.com/okcoker/taggle.js/issues/39#issuecomment-162628393","issue_url":"https://api.github.com/repos/okcoker/taggle.js/issues/39","id":162628393,"user":{"login":"okcoker","id":1030830,"avatar_url":"https://avatars.githubusercontent.com/u/1030830?v=3","gravatar_id":"","url":"https://api.github.com/users/okcoker","html_url":"https://github.com/okcoker","followers_url":"https://api.github.com/users/okcoker/followers","following_url":"https://api.github.com/users/okcoker/following{/other_user}","gists_url":"https://api.github.com/users/okcoker/gists{/gist_id}","starred_url":"https://api.github.com/users/okcoker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okcoker/subscriptions","organizations_url":"https://api.github.com/users/okcoker/orgs","repos_url":"https://api.github.com/users/okcoker/repos","events_url":"https://api.github.com/users/okcoker/events{/privacy}","received_events_url":"https://api.github.com/users/okcoker/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T19:13:34Z","updated_at":"2015-12-07T19:13:34Z","body":"Thanks!\r\n\r\nI think this could be a useful option. I will consider adding it within the next release since it's still possible to achieve this functionality using the suggestion you already mentioned."}}