GitHub PullRequestReviewCommentEvent at 2014-12-04 06:20:27
Repository: bem-components
Actor: Nikulinnn
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/bem/bem-components/pulls/comments/21287710","id":21287710,"diff_hunk":"@@ -1,273 +1,371 @@\n # checkbox-group\n \n-Блок `checkbox-group` служит для отображения группы однотипных переключателей – чекбоксов (блоков [checkbox](../checkbox/checkbox.ru.md)).\n+Используется для отображения группы однотипных переключателей – [чекбоксов](../checkbox/checkbox.ru.md).\n \n-Блок позволяет управлять внешним видом и состоянием вложенных независимых чекбоксов.\n+## Краткая информация\n \n-В результате BEMHTML-преобразований блок `checkbox-group` становится HTML-элементом с тегом `<span>` – контейнером, содержащим группу чекбоксов и подписи к ним.\n+### Модификаторы блока\n \n-## Специализированные поля блока\n+| Модификатор | Допустимые значения | Способы использования | Описание |\n+| ----------- | ------------------- | -------------------- | -------- |\n+| <a href=#checkboxtype>type</a> | <code>'button'</code>, <code>'line'</code> | <code>BEMJSON</code> | Тип группы чекбоксов. |\n+| <a href=#checkboxdisabled>disabled</a> | <code>true</code> | <code>BEMJSON</code>, <code>JS</code> | Неактивное состояние. |\n+| <a href=#checkboxfocused>focused</a> | <code>true</code> | <code>BEMJSON</code> | Фокус на блоке. |\n+| <a href=#checkboxsize>size</a> | <code>'m'</code>, <code>'l'</code>  | <code>BEMJSON</code> | Размер чекбоксов в группе. Используется только для чекбоксов с <a href=#checkboxtheme>модификатором theme в значении islands</a>. |\n+| <a href=#checkboxtheme>theme</a> | <code>'islands'</code> | <code>BEMJSON</code> | Стилевое оформление. |\n \n-Список зарезервированных полей входного BEMJSON:\n+### Специализированные поля блока\n \n-<table>\n-    <tr>\n-        <th>Поле</th>\n-        <th>Тип</th>\n-        <th>Описание</th>\n-    </tr>\n-    <tr>\n-        <td>name</td>\n-        <td><code>String</code></td>\n-        <td>Имя группы чекбоксов. Преобразуется в HTML-атрибут <code>name</code> вложенного блока <code>input</code>.</td>\n-    </tr>\n-    <tr>\n-        <td>options</td>\n-        <td><code>Array</code></td>\n-        <td>Массив пар значений <code>text=val</code>, которые соответствуют одному чекбоксу группы. На сервер отправляется пара <code>name=val</code>, где имя группы чекбоксов задается ключом <code>name</code>, а значение каждого чекбокса — ключом <code>val</code>.\n-            <br>Независимый чекбокс из группы может получать модификаторы блока <code>checkbox</code>. Например, модификаторы <code>checked</code> или <code>disabled</code> могут быть заданы не блоку <code>checkbox-group</code>, а отдельным чекбоксам.</td>\n-    </tr>\n-</table>\n+| Поле | Тип | Описание |\n+| ---- | --- | -------- |\n+| <a href=#checkboxname>name</a> | <code>String</code> | Имя группы чекбоксов. |\n+| <a href=#checkboxopt>options</a> | <code>Array</code> | Набор значений для каждого чекбокса группы. Каждому <a href=\"../checkbox/checkbox.ru.md\">типу чекбоксов</a> соответствует разный <a href=\"#checkboxoptset\">набор значений</a>. Через поле <code>options</code> каждому чекбоксу группы можно установить модификаторы `disabled` и `checked`.|\n \n-При необходимости дополнительные HTML-атрибуты блока могут быть заданы в зарезервированном поле `attrs` в BEMJSON.\n+## Обзор блока\n \n-## Модификаторы блока\n+Блок `checkbox-group` позволяет управлять внешним видом и состоянием вложенных независимых чекбоксов.\n \n-### Темы `_theme`\n+### Модификаторы блока\n \n-Блок представлен в следующих темах:\n+<a name=\"checkboxtype\"></a>\n \n-* simple\n-* islands (**Важно:** При выборе темы `islands` необходимо указывать обязательный модификатор [size](#size).)\n+#### Модификатор `type`\n \n-Без указания модификатора `theme` отображается [нативный](#default) вид контрола.\n+Допустимые значения: `'button'`, `'line'`.","path":"common.blocks/checkbox-group/checkbox-group.ru.md","position":64,"original_position":64,"commit_id":"303516a82513d85e7f3748235a903b0b4a92efa0","original_commit_id":"303516a82513d85e7f3748235a903b0b4a92efa0","user":{"login":"Nikulinnn","id":6550707,"avatar_url":"https://avatars.githubusercontent.com/u/6550707?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikulinnn","html_url":"https://github.com/Nikulinnn","followers_url":"https://api.github.com/users/Nikulinnn/followers","following_url":"https://api.github.com/users/Nikulinnn/following{/other_user}","gists_url":"https://api.github.com/users/Nikulinnn/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikulinnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikulinnn/subscriptions","organizations_url":"https://api.github.com/users/Nikulinnn/orgs","repos_url":"https://api.github.com/users/Nikulinnn/repos","events_url":"https://api.github.com/users/Nikulinnn/events{/privacy}","received_events_url":"https://api.github.com/users/Nikulinnn/received_events","type":"User","site_admin":false},"body":"Их можно привести списком и дать описание в виде человеческих названия (которые позже встречаются в заголовках). \r\nТогда сразу становится понятным, к какому именно типу модификатора мне нужно перейти (зачем мне читать про button, если нужен line).","created_at":"2014-12-04T06:20:27Z","updated_at":"2014-12-04T06:20:27Z","html_url":"https://github.com/bem/bem-components/pull/1124#discussion_r21287710","pull_request_url":"https://api.github.com/repos/bem/bem-components/pulls/1124","_links":{"self":{"href":"https://api.github.com/repos/bem/bem-components/pulls/comments/21287710"},"html":{"href":"https://github.com/bem/bem-components/pull/1124#discussion_r21287710"},"pull_request":{"href":"https://api.github.com/repos/bem/bem-components/pulls/1124"}}},"pull_request":{"url":"https://api.github.com/repos/bem/bem-components/pulls/1124","id":25014620,"html_url":"https://github.com/bem/bem-components/pull/1124","diff_url":"https://github.com/bem/bem-components/pull/1124.diff","patch_url":"https://github.com/bem/bem-components/pull/1124.patch","issue_url":"https://api.github.com/repos/bem/bem-components/issues/1124","number":1124,"state":"open","locked":false,"title":"checkbox-group description fixed","user":{"login":"innabelaya","id":6286656,"avatar_url":"https://avatars.githubusercontent.com/u/6286656?v=3","gravatar_id":"","url":"https://api.github.com/users/innabelaya","html_url":"https://github.com/innabelaya","followers_url":"https://api.github.com/users/innabelaya/followers","following_url":"https://api.github.com/users/innabelaya/following{/other_user}","gists_url":"https://api.github.com/users/innabelaya/gists{/gist_id}","starred_url":"https://api.github.com/users/innabelaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/innabelaya/subscriptions","organizations_url":"https://api.github.com/users/innabelaya/orgs","repos_url":"https://api.github.com/users/innabelaya/repos","events_url":"https://api.github.com/users/innabelaya/events{/privacy}","received_events_url":"https://api.github.com/users/innabelaya/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-11-25T15:16:00Z","updated_at":"2014-12-04T06:20:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1212bde8af6e391bcadb73ae60c9723198c18d03","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bem/bem-components/pulls/1124/commits","review_comments_url":"https://api.github.com/repos/bem/bem-components/pulls/1124/comments","review_comment_url":"https://api.github.com/repos/bem/bem-components/pulls/comments/{number}","comments_url":"https://api.github.com/repos/bem/bem-components/issues/1124/comments","statuses_url":"https://api.github.com/repos/bem/bem-components/statuses/303516a82513d85e7f3748235a903b0b4a92efa0","head":{"label":"bem:checkbox-group-doc-r","ref":"checkbox-group-doc-r","sha":"303516a82513d85e7f3748235a903b0b4a92efa0","user":{"login":"bem","id":223412,"avatar_url":"https://avatars.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"repo":{"id":6578551,"name":"bem-components","full_name":"bem/bem-components","owner":{"login":"bem","id":223412,"avatar_url":"https://avatars.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bem/bem-components","description":"Set of components for sites development","fork":false,"url":"https://api.github.com/repos/bem/bem-components","forks_url":"https://api.github.com/repos/bem/bem-components/forks","keys_url":"https://api.github.com/repos/bem/bem-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bem/bem-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bem/bem-components/teams","hooks_url":"https://api.github.com/repos/bem/bem-components/hooks","issue_events_url":"https://api.github.com/repos/bem/bem-components/issues/events{/number}","events_url":"https://api.github.com/repos/bem/bem-components/events","assignees_url":"https://api.github.com/repos/bem/bem-components/assignees{/user}","branches_url":"https://api.github.com/repos/bem/bem-components/branches{/branch}","tags_url":"https://api.github.com/repos/bem/bem-components/tags","blobs_url":"https://api.github.com/repos/bem/bem-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bem/bem-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bem/bem-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/bem/bem-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bem/bem-components/statuses/{sha}","languages_url":"https://api.github.com/repos/bem/bem-components/languages","stargazers_url":"https://api.github.com/repos/bem/bem-components/stargazers","contributors_url":"https://api.github.com/repos/bem/bem-components/contributors","subscribers_url":"https://api.github.com/repos/bem/bem-components/subscribers","subscription_url":"https://api.github.com/repos/bem/bem-components/subscription","commits_url":"https://api.github.com/repos/bem/bem-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/bem/bem-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/bem/bem-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/bem/bem-components/issues/comments/{number}","contents_url":"https://api.github.com/repos/bem/bem-components/contents/{+path}","compare_url":"https://api.github.com/repos/bem/bem-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bem/bem-components/merges","archive_url":"https://api.github.com/repos/bem/bem-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bem/bem-components/downloads","issues_url":"https://api.github.com/repos/bem/bem-components/issues{/number}","pulls_url":"https://api.github.com/repos/bem/bem-components/pulls{/number}","milestones_url":"https://api.github.com/repos/bem/bem-components/milestones{/number}","notifications_url":"https://api.github.com/repos/bem/bem-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bem/bem-components/labels{/name}","releases_url":"https://api.github.com/repos/bem/bem-components/releases{/id}","created_at":"2012-11-07T11:54:35Z","updated_at":"2014-12-03T12:47:50Z","pushed_at":"2014-12-03T20:25:22Z","git_url":"git://github.com/bem/bem-components.git","ssh_url":"git@github.com:bem/bem-components.git","clone_url":"https://github.com/bem/bem-components.git","svn_url":"https://github.com/bem/bem-components","homepage":"http://bem.info/libs/bem-components/","size":15696,"stargazers_count":52,"watchers_count":52,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":86,"forks":39,"open_issues":86,"watchers":52,"default_branch":"v2"}},"base":{"label":"bem:v2","ref":"v2","sha":"2a88b28afc645dc3fe0621444ffc4c3f65fb4fed","user":{"login":"bem","id":223412,"avatar_url":"https://avatars.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"repo":{"id":6578551,"name":"bem-components","full_name":"bem/bem-components","owner":{"login":"bem","id":223412,"avatar_url":"https://avatars.githubusercontent.com/u/223412?v=3","gravatar_id":"","url":"https://api.github.com/users/bem","html_url":"https://github.com/bem","followers_url":"https://api.github.com/users/bem/followers","following_url":"https://api.github.com/users/bem/following{/other_user}","gists_url":"https://api.github.com/users/bem/gists{/gist_id}","starred_url":"https://api.github.com/users/bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bem/subscriptions","organizations_url":"https://api.github.com/users/bem/orgs","repos_url":"https://api.github.com/users/bem/repos","events_url":"https://api.github.com/users/bem/events{/privacy}","received_events_url":"https://api.github.com/users/bem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bem/bem-components","description":"Set of components for sites development","fork":false,"url":"https://api.github.com/repos/bem/bem-components","forks_url":"https://api.github.com/repos/bem/bem-components/forks","keys_url":"https://api.github.com/repos/bem/bem-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bem/bem-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bem/bem-components/teams","hooks_url":"https://api.github.com/repos/bem/bem-components/hooks","issue_events_url":"https://api.github.com/repos/bem/bem-components/issues/events{/number}","events_url":"https://api.github.com/repos/bem/bem-components/events","assignees_url":"https://api.github.com/repos/bem/bem-components/assignees{/user}","branches_url":"https://api.github.com/repos/bem/bem-components/branches{/branch}","tags_url":"https://api.github.com/repos/bem/bem-components/tags","blobs_url":"https://api.github.com/repos/bem/bem-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bem/bem-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bem/bem-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/bem/bem-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bem/bem-components/statuses/{sha}","languages_url":"https://api.github.com/repos/bem/bem-components/languages","stargazers_url":"https://api.github.com/repos/bem/bem-components/stargazers","contributors_url":"https://api.github.com/repos/bem/bem-components/contributors","subscribers_url":"https://api.github.com/repos/bem/bem-components/subscribers","subscription_url":"https://api.github.com/repos/bem/bem-components/subscription","commits_url":"https://api.github.com/repos/bem/bem-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/bem/bem-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/bem/bem-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/bem/bem-components/issues/comments/{number}","contents_url":"https://api.github.com/repos/bem/bem-components/contents/{+path}","compare_url":"https://api.github.com/repos/bem/bem-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bem/bem-components/merges","archive_url":"https://api.github.com/repos/bem/bem-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bem/bem-components/downloads","issues_url":"https://api.github.com/repos/bem/bem-components/issues{/number}","pulls_url":"https://api.github.com/repos/bem/bem-components/pulls{/number}","milestones_url":"https://api.github.com/repos/bem/bem-components/milestones{/number}","notifications_url":"https://api.github.com/repos/bem/bem-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bem/bem-components/labels{/name}","releases_url":"https://api.github.com/repos/bem/bem-components/releases{/id}","created_at":"2012-11-07T11:54:35Z","updated_at":"2014-12-03T12:47:50Z","pushed_at":"2014-12-03T20:25:22Z","git_url":"git://github.com/bem/bem-components.git","ssh_url":"git@github.com:bem/bem-components.git","clone_url":"https://github.com/bem/bem-components.git","svn_url":"https://github.com/bem/bem-components","homepage":"http://bem.info/libs/bem-components/","size":15696,"stargazers_count":52,"watchers_count":52,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":86,"forks":39,"open_issues":86,"watchers":52,"default_branch":"v2"}},"_links":{"self":{"href":"https://api.github.com/repos/bem/bem-components/pulls/1124"},"html":{"href":"https://github.com/bem/bem-components/pull/1124"},"issue":{"href":"https://api.github.com/repos/bem/bem-components/issues/1124"},"comments":{"href":"https://api.github.com/repos/bem/bem-components/issues/1124/comments"},"review_comments":{"href":"https://api.github.com/repos/bem/bem-components/pulls/1124/comments"},"review_comment":{"href":"https://api.github.com/repos/bem/bem-components/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/bem/bem-components/pulls/1124/commits"},"statuses":{"href":"https://api.github.com/repos/bem/bem-components/statuses/303516a82513d85e7f3748235a903b0b4a92efa0"}}}}