{"action":"created","issue":{"url":"https://api.github.com/repos/formly-js/angular-formly/issues/470","labels_url":"https://api.github.com/repos/formly-js/angular-formly/issues/470/labels{/name}","comments_url":"https://api.github.com/repos/formly-js/angular-formly/issues/470/comments","events_url":"https://api.github.com/repos/formly-js/angular-formly/issues/470/events","html_url":"https://github.com/formly-js/angular-formly/issues/470","id":107062722,"number":470,"title":"Setting flex class to Fieldgroup inside a Fieldgroup","user":{"login":"GianlucaBobbio","id":1668844,"avatar_url":"https://avatars.githubusercontent.com/u/1668844?v=3","gravatar_id":"","url":"https://api.github.com/users/GianlucaBobbio","html_url":"https://github.com/GianlucaBobbio","followers_url":"https://api.github.com/users/GianlucaBobbio/followers","following_url":"https://api.github.com/users/GianlucaBobbio/following{/other_user}","gists_url":"https://api.github.com/users/GianlucaBobbio/gists{/gist_id}","starred_url":"https://api.github.com/users/GianlucaBobbio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GianlucaBobbio/subscriptions","organizations_url":"https://api.github.com/users/GianlucaBobbio/orgs","repos_url":"https://api.github.com/users/GianlucaBobbio/repos","events_url":"https://api.github.com/users/GianlucaBobbio/events{/privacy}","received_events_url":"https://api.github.com/users/GianlucaBobbio/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-17T20:01:38Z","updated_at":"2015-09-19T20:41:12Z","closed_at":"2015-09-18T04:13:13Z","body":"FIRST OF ALL, SORRY FOR BAD ENGLISH\r\n\r\nI had to create a dinamyc layout with fieldgroups inside of fieldgroups but I had no way to set a flex in a fieldgroup.\r\n\r\nI was trying that, inside a row (wich is a fieldgroup), I could have:\r\n\r\n|--------------object (flex 75)------------|---column (flex 25)---|\r\n\r\nI was trying with the following json\r\n\r\n`\"elementAttributes\": {\r\n                \"layout\": \"column\",\r\n                \"className\": \"flex flex-25\"\r\n },`\r\n\r\nBut that flex (or class) is being applied to the ng-form that is being crated, and not the \"formly-field-group\" container\r\n\r\nI made a fix. Inside the \"elementAttributes\" i added \"formlyFieldGroupClass\" so now I have\r\n\r\n`\"elementAttributes\": {\r\n                \"layout\": \"column\",\r\n                \"formlyFieldGroupClass\": \"flex flex-25\"\r\n            },`\r\n\r\nand in the library I added (line 1476):\r\n\r\n`if(scope.options.elementAttributes.formlyFieldGroupClass){\r\n\t      \t\tel.addClass(scope.options.elementAttributes.formlyFieldGroupClass);\r\n\t      \t}`\r\n\r\nand now everything is working fine :)"},"comment":{"url":"https://api.github.com/repos/formly-js/angular-formly/issues/comments/141705998","html_url":"https://github.com/formly-js/angular-formly/issues/470#issuecomment-141705998","issue_url":"https://api.github.com/repos/formly-js/angular-formly/issues/470","id":141705998,"user":{"login":"kentcdodds","id":1500684,"avatar_url":"https://avatars.githubusercontent.com/u/1500684?v=3","gravatar_id":"","url":"https://api.github.com/users/kentcdodds","html_url":"https://github.com/kentcdodds","followers_url":"https://api.github.com/users/kentcdodds/followers","following_url":"https://api.github.com/users/kentcdodds/following{/other_user}","gists_url":"https://api.github.com/users/kentcdodds/gists{/gist_id}","starred_url":"https://api.github.com/users/kentcdodds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentcdodds/subscriptions","organizations_url":"https://api.github.com/users/kentcdodds/orgs","repos_url":"https://api.github.com/users/kentcdodds/repos","events_url":"https://api.github.com/users/kentcdodds/events{/privacy}","received_events_url":"https://api.github.com/users/kentcdodds/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T20:41:12Z","updated_at":"2015-09-19T20:41:12Z","body":"What I meant was where you get help. Not in the GitHub issues. ☺"}}