{"id":14972480,"url":"https://github.com/devanb/datatables-rails-bs3","last_synced_at":"2025-06-26T01:03:48.752Z","repository":{"id":59152750,"uuid":"13836012","full_name":"DevanB/datatables-rails-bs3","owner":"DevanB","description":"datatables bootstrap 3 for rails","archived":false,"fork":false,"pushed_at":"2013-11-04T14:52:28.000Z","size":712,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-09T19:16:23.703Z","etag":null,"topics":["bootstrap","bootstrap3","datatables","rails","rails-gem","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/datatables-rails-bs3","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevanB.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-24T15:26:52.000Z","updated_at":"2017-04-10T17:02:08.000Z","dependencies_parsed_at":"2022-09-13T10:50:29.932Z","dependency_job_id":null,"html_url":"https://github.com/DevanB/datatables-rails-bs3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DevanB/datatables-rails-bs3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevanB%2Fdatatables-rails-bs3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevanB%2Fdatatables-rails-bs3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevanB%2Fdatatables-rails-bs3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevanB%2Fdatatables-rails-bs3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevanB","download_url":"https://codeload.github.com/DevanB/datatables-rails-bs3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevanB%2Fdatatables-rails-bs3/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261978910,"owners_count":23239417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","bootstrap3","datatables","rails","rails-gem","ruby"],"created_at":"2024-09-24T13:46:59.024Z","updated_at":"2025-06-26T01:03:48.727Z","avatar_url":"https://github.com/DevanB.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# datatables-rails-bs3\n\nThis gem packages the jQuery [DataTables](http://datatables.net/) plugin for easy use with the Rails 3.1+ asset pipleine.\n\nIt provides all the basic DataTables files, and a few of the extras.\n\n## Twitter Bootstrap 3 Installation\n\n1. Add to your Gemfile:\n\n        gem 'datatables-rails-bs3'\n\n1. Install the gem:\n\n        bundle install\n\n1. Add the JavaScript to `application.js`:\n\n        //= require dataTables/jquery.dataTables\n        //= require dataTables/jquery.dataTables.bootstrap\n\n1. Add the stylesheets to `application.css`:\n\n        *= require dataTables/jquery.dataTables.bootstrap\n\n1. Initialize your datatables using one of these options:\n\n```javascript\n// Default Type\n$('.datatable').dataTable({\n  \"sPaginationType\": \"bs_normal\"\n});\n```\n```javascript\n// Two Buttons\n$('.datatable').dataTable({\n  \"sPaginationType\": \"bs_two_button\"\n});\n```\n```javascript\n// Four Buttons\n$('.datatable').dataTable({\n  \"sPaginationType\": \"bs_four_button\"\n});\n```\n```javascript\n// Full\n$('.datatable').dataTable({\n  \"sPaginationType\": \"bs_full\"\n});\n```\n\n## Plugins\n\nOnly a few plugins are currently available\n\n* api\n    * fnReloadAjax\n    * fnGetColumnData\n    * fnFilterOnReturn\n    * fnSetFilteringDelay\n* sorting\n    * numbersHtml\n* typeDetection\n    * numberHtml\n\nThese files can be found in the [assets directory][assets].\n\n## Extras\n\nOnly the official extras are available:\n\n* AutoFill\n* ColReorder\n* ColVis\n* FixedColumns\n* FixedHeader\n* KeyTable\n* Scroller\n* TableTools\n\nTo add an extra into your application, add its JS file to `application.js` using the following pattern:\n\n    //= require dataTables/extras/[ExtraName]\n\nAdditionally, you may need to add any associated CSS files. For instance the TableTools extra requires\nyou to add the following two lines to your `application.css` file:\n\n    *= require dataTables/extras/TableTools\n    *= require dataTables/extras/TableTools_JUI\n\nMake sure to also add it's initialization as described on [datatables extras' site][datatables_extras]\n\n\n\n\n\n[assets]: https://github.com/DevanB/jquery-datatables-rails/tree/master/vendor/assets/javascripts/dataTables\n[datatables_extras]: http://datatables.net/extras/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevanb%2Fdatatables-rails-bs3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevanb%2Fdatatables-rails-bs3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevanb%2Fdatatables-rails-bs3/lists"}