{"action":"opened","number":6,"pull_request":{"url":"https://api.github.com/repos/xpepermint/angular-ui-switch/pulls/6","id":30531688,"html_url":"https://github.com/xpepermint/angular-ui-switch/pull/6","diff_url":"https://github.com/xpepermint/angular-ui-switch/pull/6.diff","patch_url":"https://github.com/xpepermint/angular-ui-switch/pull/6.patch","issue_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/issues/6","number":6,"state":"open","locked":false,"title":"Switch Text","user":{"login":"MaiTar","id":3019221,"avatar_url":"https://avatars.githubusercontent.com/u/3019221?v=3","gravatar_id":"","url":"https://api.github.com/users/MaiTar","html_url":"https://github.com/MaiTar","followers_url":"https://api.github.com/users/MaiTar/followers","following_url":"https://api.github.com/users/MaiTar/following{/other_user}","gists_url":"https://api.github.com/users/MaiTar/gists{/gist_id}","starred_url":"https://api.github.com/users/MaiTar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaiTar/subscriptions","organizations_url":"https://api.github.com/users/MaiTar/orgs","repos_url":"https://api.github.com/users/MaiTar/repos","events_url":"https://api.github.com/users/MaiTar/events{/privacy}","received_events_url":"https://api.github.com/users/MaiTar/received_events","type":"User","site_admin":false},"body":"Added the ability to add text to the switch.  The user can add optional attributes of \"on\" and \"off\" to the switch element like this:\r\n\r\n```html\r\n <switch id=\"enabled\" name=\"enabled\" ng-model=\"enabled\" on=\"On\" off=\"Off\" class=\"green\"></switch>\r\n````\r\n\r\nIf the user does not want to use the words On/Off, they can set any other value here, such as Yes/No:\r\n```html\r\n <switch id=\"enabled\" name=\"enabled\" ng-model=\"enabled\" on=\"Yes\" off=\"No\" class=\"green\"></switch>\r\n````\r\n\r\n These will be added to the switch as shown in attached screenshot.  An option class of \"wide\" has also been added to the last switch to allow it to accommodate more text.\r\n![screen shot 2015-03-04 at 9 34 58 pm](https://cloud.githubusercontent.com/assets/3019221/6499792/5a78c936-c2b6-11e4-888e-fbc604efc29a.png)","created_at":"2015-03-05T05:39:41Z","updated_at":"2015-03-05T05:39:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/pulls/6/commits","review_comments_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/pulls/6/comments","review_comment_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/issues/6/comments","statuses_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/statuses/b7cbb6ad312326052f0d70a309b74743360afbea","head":{"label":"MaiTar:switch-text","ref":"switch-text","sha":"b7cbb6ad312326052f0d70a309b74743360afbea","user":{"login":"MaiTar","id":3019221,"avatar_url":"https://avatars.githubusercontent.com/u/3019221?v=3","gravatar_id":"","url":"https://api.github.com/users/MaiTar","html_url":"https://github.com/MaiTar","followers_url":"https://api.github.com/users/MaiTar/followers","following_url":"https://api.github.com/users/MaiTar/following{/other_user}","gists_url":"https://api.github.com/users/MaiTar/gists{/gist_id}","starred_url":"https://api.github.com/users/MaiTar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaiTar/subscriptions","organizations_url":"https://api.github.com/users/MaiTar/orgs","repos_url":"https://api.github.com/users/MaiTar/repos","events_url":"https://api.github.com/users/MaiTar/events{/privacy}","received_events_url":"https://api.github.com/users/MaiTar/received_events","type":"User","site_admin":false},"repo":{"id":31697266,"name":"angular-ui-switch","full_name":"MaiTar/angular-ui-switch","owner":{"login":"MaiTar","id":3019221,"avatar_url":"https://avatars.githubusercontent.com/u/3019221?v=3","gravatar_id":"","url":"https://api.github.com/users/MaiTar","html_url":"https://github.com/MaiTar","followers_url":"https://api.github.com/users/MaiTar/followers","following_url":"https://api.github.com/users/MaiTar/following{/other_user}","gists_url":"https://api.github.com/users/MaiTar/gists{/gist_id}","starred_url":"https://api.github.com/users/MaiTar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaiTar/subscriptions","organizations_url":"https://api.github.com/users/MaiTar/orgs","repos_url":"https://api.github.com/users/MaiTar/repos","events_url":"https://api.github.com/users/MaiTar/events{/privacy}","received_events_url":"https://api.github.com/users/MaiTar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaiTar/angular-ui-switch","description":"On/off switch button for AngularJS","fork":true,"url":"https://api.github.com/repos/MaiTar/angular-ui-switch","forks_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/forks","keys_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/teams","hooks_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/hooks","issue_events_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/issues/events{/number}","events_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/events","assignees_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/assignees{/user}","branches_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/branches{/branch}","tags_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/tags","blobs_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/statuses/{sha}","languages_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/languages","stargazers_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/stargazers","contributors_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/contributors","subscribers_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/subscribers","subscription_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/subscription","commits_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/contents/{+path}","compare_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/merges","archive_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/downloads","issues_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/issues{/number}","pulls_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/pulls{/number}","milestones_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/milestones{/number}","notifications_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/labels{/name}","releases_url":"https://api.github.com/repos/MaiTar/angular-ui-switch/releases{/id}","created_at":"2015-03-05T05:20:29Z","updated_at":"2015-03-05T05:20:29Z","pushed_at":"2015-03-05T05:30:54Z","git_url":"git://github.com/MaiTar/angular-ui-switch.git","ssh_url":"git@github.com:MaiTar/angular-ui-switch.git","clone_url":"https://github.com/MaiTar/angular-ui-switch.git","svn_url":"https://github.com/MaiTar/angular-ui-switch","homepage":null,"size":228,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xpepermint:master","ref":"master","sha":"937cf33977c2e1ef8a4ccea00d350bf6c9ff3cd9","user":{"login":"xpepermint","id":174279,"avatar_url":"https://avatars.githubusercontent.com/u/174279?v=3","gravatar_id":"","url":"https://api.github.com/users/xpepermint","html_url":"https://github.com/xpepermint","followers_url":"https://api.github.com/users/xpepermint/followers","following_url":"https://api.github.com/users/xpepermint/following{/other_user}","gists_url":"https://api.github.com/users/xpepermint/gists{/gist_id}","starred_url":"https://api.github.com/users/xpepermint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpepermint/subscriptions","organizations_url":"https://api.github.com/users/xpepermint/orgs","repos_url":"https://api.github.com/users/xpepermint/repos","events_url":"https://api.github.com/users/xpepermint/events{/privacy}","received_events_url":"https://api.github.com/users/xpepermint/received_events","type":"User","site_admin":false},"repo":{"id":24534009,"name":"angular-ui-switch","full_name":"xpepermint/angular-ui-switch","owner":{"login":"xpepermint","id":174279,"avatar_url":"https://avatars.githubusercontent.com/u/174279?v=3","gravatar_id":"","url":"https://api.github.com/users/xpepermint","html_url":"https://github.com/xpepermint","followers_url":"https://api.github.com/users/xpepermint/followers","following_url":"https://api.github.com/users/xpepermint/following{/other_user}","gists_url":"https://api.github.com/users/xpepermint/gists{/gist_id}","starred_url":"https://api.github.com/users/xpepermint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpepermint/subscriptions","organizations_url":"https://api.github.com/users/xpepermint/orgs","repos_url":"https://api.github.com/users/xpepermint/repos","events_url":"https://api.github.com/users/xpepermint/events{/privacy}","received_events_url":"https://api.github.com/users/xpepermint/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xpepermint/angular-ui-switch","description":"On/off switch button for AngularJS","fork":false,"url":"https://api.github.com/repos/xpepermint/angular-ui-switch","forks_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/forks","keys_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/teams","hooks_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/hooks","issue_events_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/issues/events{/number}","events_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/events","assignees_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/assignees{/user}","branches_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/branches{/branch}","tags_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/tags","blobs_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/git/refs{/sha}","trees_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/statuses/{sha}","languages_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/languages","stargazers_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/stargazers","contributors_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/contributors","subscribers_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/subscribers","subscription_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/subscription","commits_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/commits{/sha}","git_commits_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/git/commits{/sha}","comments_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/comments{/number}","issue_comment_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/issues/comments{/number}","contents_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/contents/{+path}","compare_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/merges","archive_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/downloads","issues_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/issues{/number}","pulls_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/pulls{/number}","milestones_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/milestones{/number}","notifications_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/labels{/name}","releases_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/releases{/id}","created_at":"2014-09-27T14:39:02Z","updated_at":"2015-03-04T01:07:40Z","pushed_at":"2015-02-28T08:51:07Z","git_url":"git://github.com/xpepermint/angular-ui-switch.git","ssh_url":"git@github.com:xpepermint/angular-ui-switch.git","clone_url":"https://github.com/xpepermint/angular-ui-switch.git","svn_url":"https://github.com/xpepermint/angular-ui-switch","homepage":null,"size":228,"stargazers_count":35,"watchers_count":35,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xpepermint/angular-ui-switch/pulls/6"},"html":{"href":"https://github.com/xpepermint/angular-ui-switch/pull/6"},"issue":{"href":"https://api.github.com/repos/xpepermint/angular-ui-switch/issues/6"},"comments":{"href":"https://api.github.com/repos/xpepermint/angular-ui-switch/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/xpepermint/angular-ui-switch/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/xpepermint/angular-ui-switch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xpepermint/angular-ui-switch/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/xpepermint/angular-ui-switch/statuses/b7cbb6ad312326052f0d70a309b74743360afbea"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":76,"deletions":3,"changed_files":7}}