{"action":"closed","issue":{"url":"https://api.github.com/repos/emalherbi/bootTable/issues/5","labels_url":"https://api.github.com/repos/emalherbi/bootTable/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/emalherbi/bootTable/issues/5/comments","events_url":"https://api.github.com/repos/emalherbi/bootTable/issues/5/events","html_url":"https://github.com/emalherbi/bootTable/issues/5","id":89305854,"number":5,"title":"add Zeros Left from getItensCount","user":{"login":"emalherbi","id":599674,"avatar_url":"https://avatars.githubusercontent.com/u/599674?v=3","gravatar_id":"","url":"https://api.github.com/users/emalherbi","html_url":"https://github.com/emalherbi","followers_url":"https://api.github.com/users/emalherbi/followers","following_url":"https://api.github.com/users/emalherbi/following{/other_user}","gists_url":"https://api.github.com/users/emalherbi/gists{/gist_id}","starred_url":"https://api.github.com/users/emalherbi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emalherbi/subscriptions","organizations_url":"https://api.github.com/users/emalherbi/orgs","repos_url":"https://api.github.com/users/emalherbi/repos","events_url":"https://api.github.com/users/emalherbi/events{/privacy}","received_events_url":"https://api.github.com/users/emalherbi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-18T14:17:58Z","updated_at":"2015-06-18T17:09:50Z","closed_at":"2015-06-18T17:09:50Z","body":"```javascript\r\n    var addZerosLeft = function(str, max) {\r\n      str = String( str );\r\n      return ( str.length < max ) ? addZerosLeft(\"0\" + str, max) : str;\r\n    };\r\n\r\n    base.getItensCount = function() {\r\n      return addZerosLeft(base.$el.find('tbody tr').length, base.options.zerosLeft);\r\n    };\r\n```"}}