{"action":"opened","number":2578,"pull_request":{"url":"https://api.github.com/repos/angular-ui/ng-grid/pulls/2578","id":27525744,"html_url":"https://github.com/angular-ui/ng-grid/pull/2578","diff_url":"https://github.com/angular-ui/ng-grid/pull/2578.diff","patch_url":"https://github.com/angular-ui/ng-grid/pull/2578.patch","issue_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2578","number":2578,"state":"open","locked":false,"title":"Add Index for Row Indexing","user":{"login":"jhawlwut","id":8193116,"avatar_url":"https://avatars.githubusercontent.com/u/8193116?v=3","gravatar_id":"","url":"https://api.github.com/users/jhawlwut","html_url":"https://github.com/jhawlwut","followers_url":"https://api.github.com/users/jhawlwut/followers","following_url":"https://api.github.com/users/jhawlwut/following{/other_user}","gists_url":"https://api.github.com/users/jhawlwut/gists{/gist_id}","starred_url":"https://api.github.com/users/jhawlwut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhawlwut/subscriptions","organizations_url":"https://api.github.com/users/jhawlwut/orgs","repos_url":"https://api.github.com/users/jhawlwut/repos","events_url":"https://api.github.com/users/jhawlwut/events{/privacy}","received_events_url":"https://api.github.com/users/jhawlwut/received_events","type":"User","site_admin":false},"body":"Allows for the row to be indexed with a new column corresponding to the data in the view.\r\nExample of adding the column using a controller:\r\ncolDefs.push({'name': 'Index', 'displayName': 'Index', 'width': '60', 'visible': true,\r\n               'cellTemplate': '<div class=\\\"ui-grid-cell-contents\\\">{{grid.options.paginationPageSize*(grid.options.paginationCurrentPage-1)+row.index+1 }}</div>', });\r\n\r\n![screen shot 2015-01-16 at 1 26 07 pm](https://cloud.githubusercontent.com/assets/8193116/5781782/772341ea-9d83-11e4-93ee-a3a4b173ea5e.png)\r\n","created_at":"2015-01-16T18:27:56Z","updated_at":"2015-01-16T18:27:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/angular-ui/ng-grid/pulls/2578/commits","review_comments_url":"https://api.github.com/repos/angular-ui/ng-grid/pulls/2578/comments","review_comment_url":"https://api.github.com/repos/angular-ui/ng-grid/pulls/comments/{number}","comments_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/2578/comments","statuses_url":"https://api.github.com/repos/angular-ui/ng-grid/statuses/5aa684a6b86624a7c4c4a6c7a5ced5fa5960c9d6","head":{"label":"jhawlwut:master","ref":"master","sha":"5aa684a6b86624a7c4c4a6c7a5ced5fa5960c9d6","user":{"login":"jhawlwut","id":8193116,"avatar_url":"https://avatars.githubusercontent.com/u/8193116?v=3","gravatar_id":"","url":"https://api.github.com/users/jhawlwut","html_url":"https://github.com/jhawlwut","followers_url":"https://api.github.com/users/jhawlwut/followers","following_url":"https://api.github.com/users/jhawlwut/following{/other_user}","gists_url":"https://api.github.com/users/jhawlwut/gists{/gist_id}","starred_url":"https://api.github.com/users/jhawlwut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhawlwut/subscriptions","organizations_url":"https://api.github.com/users/jhawlwut/orgs","repos_url":"https://api.github.com/users/jhawlwut/repos","events_url":"https://api.github.com/users/jhawlwut/events{/privacy}","received_events_url":"https://api.github.com/users/jhawlwut/received_events","type":"User","site_admin":false},"repo":{"id":25694657,"name":"ng-grid","full_name":"jhawlwut/ng-grid","owner":{"login":"jhawlwut","id":8193116,"avatar_url":"https://avatars.githubusercontent.com/u/8193116?v=3","gravatar_id":"","url":"https://api.github.com/users/jhawlwut","html_url":"https://github.com/jhawlwut","followers_url":"https://api.github.com/users/jhawlwut/followers","following_url":"https://api.github.com/users/jhawlwut/following{/other_user}","gists_url":"https://api.github.com/users/jhawlwut/gists{/gist_id}","starred_url":"https://api.github.com/users/jhawlwut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhawlwut/subscriptions","organizations_url":"https://api.github.com/users/jhawlwut/orgs","repos_url":"https://api.github.com/users/jhawlwut/repos","events_url":"https://api.github.com/users/jhawlwut/events{/privacy}","received_events_url":"https://api.github.com/users/jhawlwut/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jhawlwut/ng-grid","description":"UI Grid: an Angular Data Grid","fork":true,"url":"https://api.github.com/repos/jhawlwut/ng-grid","forks_url":"https://api.github.com/repos/jhawlwut/ng-grid/forks","keys_url":"https://api.github.com/repos/jhawlwut/ng-grid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhawlwut/ng-grid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhawlwut/ng-grid/teams","hooks_url":"https://api.github.com/repos/jhawlwut/ng-grid/hooks","issue_events_url":"https://api.github.com/repos/jhawlwut/ng-grid/issues/events{/number}","events_url":"https://api.github.com/repos/jhawlwut/ng-grid/events","assignees_url":"https://api.github.com/repos/jhawlwut/ng-grid/assignees{/user}","branches_url":"https://api.github.com/repos/jhawlwut/ng-grid/branches{/branch}","tags_url":"https://api.github.com/repos/jhawlwut/ng-grid/tags","blobs_url":"https://api.github.com/repos/jhawlwut/ng-grid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhawlwut/ng-grid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhawlwut/ng-grid/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhawlwut/ng-grid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhawlwut/ng-grid/statuses/{sha}","languages_url":"https://api.github.com/repos/jhawlwut/ng-grid/languages","stargazers_url":"https://api.github.com/repos/jhawlwut/ng-grid/stargazers","contributors_url":"https://api.github.com/repos/jhawlwut/ng-grid/contributors","subscribers_url":"https://api.github.com/repos/jhawlwut/ng-grid/subscribers","subscription_url":"https://api.github.com/repos/jhawlwut/ng-grid/subscription","commits_url":"https://api.github.com/repos/jhawlwut/ng-grid/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhawlwut/ng-grid/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhawlwut/ng-grid/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhawlwut/ng-grid/issues/comments/{number}","contents_url":"https://api.github.com/repos/jhawlwut/ng-grid/contents/{+path}","compare_url":"https://api.github.com/repos/jhawlwut/ng-grid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhawlwut/ng-grid/merges","archive_url":"https://api.github.com/repos/jhawlwut/ng-grid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhawlwut/ng-grid/downloads","issues_url":"https://api.github.com/repos/jhawlwut/ng-grid/issues{/number}","pulls_url":"https://api.github.com/repos/jhawlwut/ng-grid/pulls{/number}","milestones_url":"https://api.github.com/repos/jhawlwut/ng-grid/milestones{/number}","notifications_url":"https://api.github.com/repos/jhawlwut/ng-grid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhawlwut/ng-grid/labels{/name}","releases_url":"https://api.github.com/repos/jhawlwut/ng-grid/releases{/id}","created_at":"2014-10-24T15:25:06Z","updated_at":"2015-01-16T17:16:47Z","pushed_at":"2015-01-16T17:16:46Z","git_url":"git://github.com/jhawlwut/ng-grid.git","ssh_url":"git@github.com:jhawlwut/ng-grid.git","clone_url":"https://github.com/jhawlwut/ng-grid.git","svn_url":"https://github.com/jhawlwut/ng-grid","homepage":"","size":11772,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"angular-ui:master","ref":"master","sha":"1cf5065b0dac8bb9ab58f6088a65a799683f95bf","user":{"login":"angular-ui","id":1530011,"avatar_url":"https://avatars.githubusercontent.com/u/1530011?v=3","gravatar_id":"","url":"https://api.github.com/users/angular-ui","html_url":"https://github.com/angular-ui","followers_url":"https://api.github.com/users/angular-ui/followers","following_url":"https://api.github.com/users/angular-ui/following{/other_user}","gists_url":"https://api.github.com/users/angular-ui/gists{/gist_id}","starred_url":"https://api.github.com/users/angular-ui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular-ui/subscriptions","organizations_url":"https://api.github.com/users/angular-ui/orgs","repos_url":"https://api.github.com/users/angular-ui/repos","events_url":"https://api.github.com/users/angular-ui/events{/privacy}","received_events_url":"https://api.github.com/users/angular-ui/received_events","type":"Organization","site_admin":false},"repo":{"id":6198699,"name":"ng-grid","full_name":"angular-ui/ng-grid","owner":{"login":"angular-ui","id":1530011,"avatar_url":"https://avatars.githubusercontent.com/u/1530011?v=3","gravatar_id":"","url":"https://api.github.com/users/angular-ui","html_url":"https://github.com/angular-ui","followers_url":"https://api.github.com/users/angular-ui/followers","following_url":"https://api.github.com/users/angular-ui/following{/other_user}","gists_url":"https://api.github.com/users/angular-ui/gists{/gist_id}","starred_url":"https://api.github.com/users/angular-ui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular-ui/subscriptions","organizations_url":"https://api.github.com/users/angular-ui/orgs","repos_url":"https://api.github.com/users/angular-ui/repos","events_url":"https://api.github.com/users/angular-ui/events{/privacy}","received_events_url":"https://api.github.com/users/angular-ui/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular-ui/ng-grid","description":"UI Grid: an Angular Data Grid","fork":false,"url":"https://api.github.com/repos/angular-ui/ng-grid","forks_url":"https://api.github.com/repos/angular-ui/ng-grid/forks","keys_url":"https://api.github.com/repos/angular-ui/ng-grid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular-ui/ng-grid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular-ui/ng-grid/teams","hooks_url":"https://api.github.com/repos/angular-ui/ng-grid/hooks","issue_events_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/events{/number}","events_url":"https://api.github.com/repos/angular-ui/ng-grid/events","assignees_url":"https://api.github.com/repos/angular-ui/ng-grid/assignees{/user}","branches_url":"https://api.github.com/repos/angular-ui/ng-grid/branches{/branch}","tags_url":"https://api.github.com/repos/angular-ui/ng-grid/tags","blobs_url":"https://api.github.com/repos/angular-ui/ng-grid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular-ui/ng-grid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular-ui/ng-grid/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular-ui/ng-grid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular-ui/ng-grid/statuses/{sha}","languages_url":"https://api.github.com/repos/angular-ui/ng-grid/languages","stargazers_url":"https://api.github.com/repos/angular-ui/ng-grid/stargazers","contributors_url":"https://api.github.com/repos/angular-ui/ng-grid/contributors","subscribers_url":"https://api.github.com/repos/angular-ui/ng-grid/subscribers","subscription_url":"https://api.github.com/repos/angular-ui/ng-grid/subscription","commits_url":"https://api.github.com/repos/angular-ui/ng-grid/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular-ui/ng-grid/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular-ui/ng-grid/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/comments/{number}","contents_url":"https://api.github.com/repos/angular-ui/ng-grid/contents/{+path}","compare_url":"https://api.github.com/repos/angular-ui/ng-grid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular-ui/ng-grid/merges","archive_url":"https://api.github.com/repos/angular-ui/ng-grid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular-ui/ng-grid/downloads","issues_url":"https://api.github.com/repos/angular-ui/ng-grid/issues{/number}","pulls_url":"https://api.github.com/repos/angular-ui/ng-grid/pulls{/number}","milestones_url":"https://api.github.com/repos/angular-ui/ng-grid/milestones{/number}","notifications_url":"https://api.github.com/repos/angular-ui/ng-grid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular-ui/ng-grid/labels{/name}","releases_url":"https://api.github.com/repos/angular-ui/ng-grid/releases{/id}","created_at":"2012-10-13T01:39:25Z","updated_at":"2015-01-16T12:55:51Z","pushed_at":"2015-01-16T06:12:14Z","git_url":"git://github.com/angular-ui/ng-grid.git","ssh_url":"git@github.com:angular-ui/ng-grid.git","clone_url":"https://github.com/angular-ui/ng-grid.git","svn_url":"https://github.com/angular-ui/ng-grid","homepage":"","size":22923,"stargazers_count":1994,"watchers_count":1994,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1064,"mirror_url":null,"open_issues_count":268,"forks":1064,"open_issues":268,"watchers":1994,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular-ui/ng-grid/pulls/2578"},"html":{"href":"https://github.com/angular-ui/ng-grid/pull/2578"},"issue":{"href":"https://api.github.com/repos/angular-ui/ng-grid/issues/2578"},"comments":{"href":"https://api.github.com/repos/angular-ui/ng-grid/issues/2578/comments"},"review_comments":{"href":"https://api.github.com/repos/angular-ui/ng-grid/pulls/2578/comments"},"review_comment":{"href":"https://api.github.com/repos/angular-ui/ng-grid/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/angular-ui/ng-grid/pulls/2578/commits"},"statuses":{"href":"https://api.github.com/repos/angular-ui/ng-grid/statuses/5aa684a6b86624a7c4c4a6c7a5ced5fa5960c9d6"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":1,"changed_files":1}}