{"action":"created","issue":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/9051","labels_url":"https://api.github.com/repos/Elgg/Elgg/issues/9051/labels{/name}","comments_url":"https://api.github.com/repos/Elgg/Elgg/issues/9051/comments","events_url":"https://api.github.com/repos/Elgg/Elgg/issues/9051/events","html_url":"https://github.com/Elgg/Elgg/pull/9051","id":113021734,"number":9051,"title":"Added ability to add attributes to options in select input","user":{"login":"Wouter0100","id":864520,"avatar_url":"https://avatars.githubusercontent.com/u/864520?v=3","gravatar_id":"","url":"https://api.github.com/users/Wouter0100","html_url":"https://github.com/Wouter0100","followers_url":"https://api.github.com/users/Wouter0100/followers","following_url":"https://api.github.com/users/Wouter0100/following{/other_user}","gists_url":"https://api.github.com/users/Wouter0100/gists{/gist_id}","starred_url":"https://api.github.com/users/Wouter0100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wouter0100/subscriptions","organizations_url":"https://api.github.com/users/Wouter0100/orgs","repos_url":"https://api.github.com/users/Wouter0100/repos","events_url":"https://api.github.com/users/Wouter0100/events{/privacy}","received_events_url":"https://api.github.com/users/Wouter0100/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-23T13:41:10Z","updated_at":"2015-10-29T11:24:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Elgg/Elgg/pulls/9051","html_url":"https://github.com/Elgg/Elgg/pull/9051","diff_url":"https://github.com/Elgg/Elgg/pull/9051.diff","patch_url":"https://github.com/Elgg/Elgg/pull/9051.patch"},"body":"I've added the ability to add attributes to options, with there key and an array of attributes (for example for disabling an option). This for the `input/select` view.\r\n\r\nFor example:\r\n```php\r\necho elgg_view('input/select', [\r\n    'options_values' => [\r\n        0 => 'enabled',\r\n        1 => 'disabled'\r\n    ],\r\n    'options_attributes' => [\r\n        1 => [\r\n            'disabled' => 'disabled'\r\n        ]\r\n    ]\r\n]);\r\n```"},"comment":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/comments/152151287","html_url":"https://github.com/Elgg/Elgg/pull/9051#issuecomment-152151287","issue_url":"https://api.github.com/repos/Elgg/Elgg/issues/9051","id":152151287,"user":{"login":"hypeJunction","id":1202761,"avatar_url":"https://avatars.githubusercontent.com/u/1202761?v=3","gravatar_id":"","url":"https://api.github.com/users/hypeJunction","html_url":"https://github.com/hypeJunction","followers_url":"https://api.github.com/users/hypeJunction/followers","following_url":"https://api.github.com/users/hypeJunction/following{/other_user}","gists_url":"https://api.github.com/users/hypeJunction/gists{/gist_id}","starred_url":"https://api.github.com/users/hypeJunction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hypeJunction/subscriptions","organizations_url":"https://api.github.com/users/hypeJunction/orgs","repos_url":"https://api.github.com/users/hypeJunction/repos","events_url":"https://api.github.com/users/hypeJunction/events{/privacy}","received_events_url":"https://api.github.com/users/hypeJunction/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T11:24:46Z","updated_at":"2015-10-29T11:24:46Z","body":"@mrclay Should this maybe go into 1.x branch?"}}