{"action":"created","issue":{"url":"https://api.github.com/repos/formio/formio/issues/237","repository_url":"https://api.github.com/repos/formio/formio","labels_url":"https://api.github.com/repos/formio/formio/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/formio/formio/issues/237/comments","events_url":"https://api.github.com/repos/formio/formio/issues/237/events","html_url":"https://github.com/formio/formio/issues/237","id":197850717,"number":237,"title":"Class on input instead of wrapper?","user":{"login":"peterbrinck","id":6154068,"avatar_url":"https://avatars.githubusercontent.com/u/6154068?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbrinck","html_url":"https://github.com/peterbrinck","followers_url":"https://api.github.com/users/peterbrinck/followers","following_url":"https://api.github.com/users/peterbrinck/following{/other_user}","gists_url":"https://api.github.com/users/peterbrinck/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbrinck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbrinck/subscriptions","organizations_url":"https://api.github.com/users/peterbrinck/orgs","repos_url":"https://api.github.com/users/peterbrinck/repos","events_url":"https://api.github.com/users/peterbrinck/events{/privacy}","received_events_url":"https://api.github.com/users/peterbrinck/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-28T13:07:47Z","updated_at":"2016-12-29T01:01:01Z","closed_at":"2016-12-29T01:01:01Z","body":"Hi!\r\n\r\nI recently started using Form.io, hosted on my own server.\r\nEverything works great, but is it true that I can't add classes to the input fields, only to the wrapper?\r\n\r\nIt's way easier to add classes to the input itself, in my opinion (and in my setup).\r\nSorry if it's in the docs somewhere, I just wasn't able to find it."},"comment":{"url":"https://api.github.com/repos/formio/formio/issues/comments/269565969","html_url":"https://github.com/formio/formio/issues/237#issuecomment-269565969","issue_url":"https://api.github.com/repos/formio/formio/issues/237","id":269565969,"user":{"login":"zackurben","id":2689122,"avatar_url":"https://avatars.githubusercontent.com/u/2689122?v=3","gravatar_id":"","url":"https://api.github.com/users/zackurben","html_url":"https://github.com/zackurben","followers_url":"https://api.github.com/users/zackurben/followers","following_url":"https://api.github.com/users/zackurben/following{/other_user}","gists_url":"https://api.github.com/users/zackurben/gists{/gist_id}","starred_url":"https://api.github.com/users/zackurben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zackurben/subscriptions","organizations_url":"https://api.github.com/users/zackurben/orgs","repos_url":"https://api.github.com/users/zackurben/repos","events_url":"https://api.github.com/users/zackurben/events{/privacy}","received_events_url":"https://api.github.com/users/zackurben/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T01:01:01Z","updated_at":"2016-12-29T01:01:01Z","body":"Hi @peterbrinck, right now there is not a supported way to add css classes to individual input elements. This is due to the fact that each component doesn't necessarily equate to one html input element, for example components with labels and stuff.\r\n\r\nYou could do some hacking of ngFormio and ngFormBuilder to override the html templates in the template cache, but you could face other issues.\r\n\r\nAdditionally each parent dom element has a specific selector, so you can use some more advanced css selectors to modify the style of individual child dom elements.\r\n\r\nHope that clears things up a bit,\r\nZack."}}
{"actor":{"display_login":"zackurben"}}