{"action":"created","issue":{"url":"https://api.github.com/repos/LeaVerou/awesomplete/issues/16855","repository_url":"https://api.github.com/repos/LeaVerou/awesomplete","labels_url":"https://api.github.com/repos/LeaVerou/awesomplete/issues/16855/labels{/name}","comments_url":"https://api.github.com/repos/LeaVerou/awesomplete/issues/16855/comments","events_url":"https://api.github.com/repos/LeaVerou/awesomplete/issues/16855/events","html_url":"https://github.com/LeaVerou/awesomplete/issues/16855","id":133455980,"number":16855,"title":"Custom class","user":{"login":"Andre741","id":13705759,"avatar_url":"https://avatars.githubusercontent.com/u/13705759?v=3","gravatar_id":"","url":"https://api.github.com/users/Andre741","html_url":"https://github.com/Andre741","followers_url":"https://api.github.com/users/Andre741/followers","following_url":"https://api.github.com/users/Andre741/following{/other_user}","gists_url":"https://api.github.com/users/Andre741/gists{/gist_id}","starred_url":"https://api.github.com/users/Andre741/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andre741/subscriptions","organizations_url":"https://api.github.com/users/Andre741/orgs","repos_url":"https://api.github.com/users/Andre741/repos","events_url":"https://api.github.com/users/Andre741/events{/privacy}","received_events_url":"https://api.github.com/users/Andre741/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LeaVerou/awesomplete/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-13T18:18:18Z","updated_at":"2016-02-13T21:28:14Z","closed_at":null,"body":"Pretty straightforward, giving the option for own classes for the wrapper.\r\n\r\nEq.\r\n```\r\n var input = document.getElementById(\"rp-input-activities\");\r\n        new Awesomplete(input, {\r\n            minChars: 0,\r\n            autoFirst: true,\r\n            list: list,\r\n            class: \"rp-input-activities-awesomplete\"\r\n        });\r\n```\r\nCode changes:\r\nFirst [21-30]\r\n```\r\n\tconfigure(this, {\r\n\t\tminChars: 2,\r\n\t\tmaxItems: 10,\r\n\t\tautoFirst: false,\r\n\t\tfilter: _.FILTER_CONTAINS,\r\n\t\tsort: _.SORT_BYLENGTH,\r\n\t\titem: _.ITEM,\r\n\t\treplace: _.REPLACE,\r\n                **class: \"\"**\r\n\t}, o);\r\n\r\n```\r\nsecond [34-39]\r\n```\r\n\t// Create necessary elements\r\n\r\n\tthis.container = $.create(\"div\", {\r\n\t\tclassName: this.class + \" awesomplete\",\r\n\t\taround: input\r\n\t});\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/LeaVerou/awesomplete/issues/comments/183757959","html_url":"https://github.com/LeaVerou/awesomplete/issues/16855#issuecomment-183757959","issue_url":"https://api.github.com/repos/LeaVerou/awesomplete/issues/16855","id":183757959,"user":{"login":"TxHawks","id":5658514,"avatar_url":"https://avatars.githubusercontent.com/u/5658514?v=3","gravatar_id":"","url":"https://api.github.com/users/TxHawks","html_url":"https://github.com/TxHawks","followers_url":"https://api.github.com/users/TxHawks/followers","following_url":"https://api.github.com/users/TxHawks/following{/other_user}","gists_url":"https://api.github.com/users/TxHawks/gists{/gist_id}","starred_url":"https://api.github.com/users/TxHawks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TxHawks/subscriptions","organizations_url":"https://api.github.com/users/TxHawks/orgs","repos_url":"https://api.github.com/users/TxHawks/repos","events_url":"https://api.github.com/users/TxHawks/events{/privacy}","received_events_url":"https://api.github.com/users/TxHawks/received_events","type":"User","site_admin":false},"created_at":"2016-02-13T21:28:14Z","updated_at":"2016-02-13T21:28:14Z","body":"I have to say, I do think there is merit in allowing users to use their own classes, mostly for integrating with an existing design system. #16805 is a long standing PR on this."}}