{"action":"created","issue":{"url":"https://api.github.com/repos/kartik-v/yii2-widget-activeform/issues/76","repository_url":"https://api.github.com/repos/kartik-v/yii2-widget-activeform","labels_url":"https://api.github.com/repos/kartik-v/yii2-widget-activeform/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/kartik-v/yii2-widget-activeform/issues/76/comments","events_url":"https://api.github.com/repos/kartik-v/yii2-widget-activeform/issues/76/events","html_url":"https://github.com/kartik-v/yii2-widget-activeform/issues/76","id":163849680,"number":76,"title":"Option \"formConfig\" can't be changed dynamically","user":{"login":"Enrica-r","id":2463365,"avatar_url":"https://avatars.githubusercontent.com/u/2463365?v=3","gravatar_id":"","url":"https://api.github.com/users/Enrica-r","html_url":"https://github.com/Enrica-r","followers_url":"https://api.github.com/users/Enrica-r/followers","following_url":"https://api.github.com/users/Enrica-r/following{/other_user}","gists_url":"https://api.github.com/users/Enrica-r/gists{/gist_id}","starred_url":"https://api.github.com/users/Enrica-r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Enrica-r/subscriptions","organizations_url":"https://api.github.com/users/Enrica-r/orgs","repos_url":"https://api.github.com/users/Enrica-r/repos","events_url":"https://api.github.com/users/Enrica-r/events{/privacy}","received_events_url":"https://api.github.com/users/Enrica-r/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-05T13:24:02Z","updated_at":"2016-07-06T13:13:48Z","closed_at":"2016-07-06T13:12:34Z","body":"During init of activeForm 'formConfig' is read and CSS are calculated once. LabelSpan and Size is stored in private variables like _labelCss or _inputCss. ActiveField reads this values during layout built.\r\n\r\nIn my form I have smaller and larger fields and sometimes two or one in a single row. I looked for a possibility to override the labelSpan value. As I didn't find an option to change the labelSpan value by calling the field method. So I had the idea to change value in 'formConfig' like\r\n\r\n```php\r\n$form->formConfig = array_merge($form->formConfig, ['labelSpan' => 7]);\r\n\r\n```\r\nthen call the $form->field method and change 'formConfig' back. Unfortunately there is no change.\r\n\r\nMethods like activeForm->getInputCss() should recreate the CSS part on the fly by using getFormLayoutStyle() instead of reading a private variable.\r\n\r\nOr do you see another possibility?\r\nThank you.\r\n"},"comment":{"url":"https://api.github.com/repos/kartik-v/yii2-widget-activeform/issues/comments/230767072","html_url":"https://github.com/kartik-v/yii2-widget-activeform/issues/76#issuecomment-230767072","issue_url":"https://api.github.com/repos/kartik-v/yii2-widget-activeform/issues/76","id":230767072,"user":{"login":"kartik-v","id":3592619,"avatar_url":"https://avatars.githubusercontent.com/u/3592619?v=3","gravatar_id":"","url":"https://api.github.com/users/kartik-v","html_url":"https://github.com/kartik-v","followers_url":"https://api.github.com/users/kartik-v/followers","following_url":"https://api.github.com/users/kartik-v/following{/other_user}","gists_url":"https://api.github.com/users/kartik-v/gists{/gist_id}","starred_url":"https://api.github.com/users/kartik-v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kartik-v/subscriptions","organizations_url":"https://api.github.com/users/kartik-v/orgs","repos_url":"https://api.github.com/users/kartik-v/repos","events_url":"https://api.github.com/users/kartik-v/events{/privacy}","received_events_url":"https://api.github.com/users/kartik-v/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T13:13:48Z","updated_at":"2016-07-06T13:13:48Z","body":"Am open for an enhancement. You can submit your ideas or share a PR as well. Let know."}}
{"actor":{"display_login":"kartik-v"}}