{"id":22004285,"url":"https://github.com/huasofoundries/backgrid_es6","last_synced_at":"2026-05-02T01:32:05.000Z","repository":{"id":48310390,"uuid":"105138321","full_name":"HuasoFoundries/backgrid_es6","owner":"HuasoFoundries","description":"Backgrid as ES6 module, with plugins and extensions","archived":false,"fork":false,"pushed_at":"2021-08-02T09:13:50.000Z","size":1961,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-15T02:01:32.723Z","etag":null,"topics":["backbone","backgrid","es6-modules","jquery","jspm","underscore"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HuasoFoundries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-28T11:06:30.000Z","updated_at":"2020-06-04T01:43:58.000Z","dependencies_parsed_at":"2022-09-21T09:10:49.483Z","dependency_job_id":null,"html_url":"https://github.com/HuasoFoundries/backgrid_es6","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuasoFoundries%2Fbackgrid_es6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuasoFoundries%2Fbackgrid_es6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuasoFoundries%2Fbackgrid_es6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuasoFoundries%2Fbackgrid_es6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HuasoFoundries","download_url":"https://codeload.github.com/HuasoFoundries/backgrid_es6/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245062727,"owners_count":20554802,"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":["backbone","backgrid","es6-modules","jquery","jspm","underscore"],"created_at":"2024-11-30T00:14:20.793Z","updated_at":"2026-05-02T01:32:04.967Z","avatar_url":"https://github.com/HuasoFoundries.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backgrid ES6\n\n[![npm](https://img.shields.io/npm/dm/backgrid_es6.svg?style=plastic)](https://www.npmjs.com/package/backgrid_es6) [![Travis CI](https://travis-ci.org/HuasoFoundries/backgrid_es6.svg?branch=master)](https://travis-ci.org/HuasoFoundries/backgrid_es6) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/HuasoFoundries/backgrid_es6/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/HuasoFoundries/backgrid_es6/?branch=master) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/1a1c1239d1ee4f65b53513bde3986507)](https://www.codacy.com/app/amenadiel/backgrid_es6?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=HuasoFoundries/backgrid_es6\u0026amp;utm_campaign=Badge_Grade)\n\nThis repo contains an ES6 version of [Backgrid.js](https://github.com/cloudflare/backgrid), allowing for ES6 imports and **tree shaking**.\n\nThis package is made by deconstructing Backgrid sources, rewriting and separating it into modules and reassembling them using [Rollup](https://github.com/rollup/rollup).\n\n\nIt also bundles ES6 versions of the extensions:\n\n- [backbone.paginator](https://github.com/backbone-paginator/backbone.paginator)\n- [backgrid-paginator](https://github.com/cloudflare/backgrid-paginator)\n- [backgrid-sizeable-columns](https://github.com/FortesSolutions/backgrid-sizeable-columns)\n\n\n## Dependencies\n\nTo use this library, your project sould already have\n\n- [jQuery](https://jquery.com/)\n- [Underscore](http://underscorejs.org/)\n- [Backbone](http://backbonejs.org/)\n\nThey aren't explicitly listed as dependencies in `package.json` (for npm nor jspm), because you might want to use other drop in replacements for these dependencies\n(for example, [lodash@^3](https://www.npmjs.com/package/lodash) instead of Underscore, [backbone_es6](https://www.npmjs.com/package/backbone_es6) instead of Backbone, or jquery.slim.js build instead of jquery.min.js).\n\n\n\n## Install\n\nInstall with npm as \n\n```sh\n\tnpm install --save-dev backgrid_es6\n```\n\nor install using [JSPM](https://github.com/jspm/jspm-cli) as\n\n```sh\njspm install npm:backgrid_es6\n```\n\n\n## Usage\n\nThis package provides two scripts.\n\n- `dist/ig_backgrid.es6.js` in ES6 format, listed as `jsnext:main` and `module` properties in `package.json`\n- `dist/ig_backgrid.js` in UMD format, listed as `main` in `package.json`\n\n\n### Usage as ES6 Module\n\nIf you're already using ES6 modules in your code (and you should), then import this library as\n\n```js\nimport {Backgrid} from 'backgrid_es6/ig_backgrid.es6.js';\n```\n\n\n### Usage as UMD (AMD, CommonJS, Global)\n\nIf you're still using AMD or CommonJS syntax, then you should use `ig_backgrid.js` which is in UMD format:\n\n```js\nvar Backgrid = require('backgrid_es6)';\n```\n\nThe UMD format is a 100% compatible drop-in replacement for official Backgrid.js.\n\n\n### Using it with [JSPM](https://github.com/jspm/jspm-cli)\n\nIf you installed `Backgrid ES6` with JSPM, `backgrid_es6` will be mapped automatically to `backgrid.es6.js`, so AMD usage would need you to point directly to `backgrid.js`:\n\n```js\ndefine([\n  'backgrid_es6/backgrid.js'\n],function(Backgrid) {\n\n  ...your code...\n\n});\n```\n\nBut, if you're transpiling  (using [plugin-babel](https://github.com/systemjs/plugin-babel)) you could use AMD syntax as:\n\n\n```js\ndefine([\n  'backgrid_es6'\n],function(Backgrid) {\n\n  // Please note that you need to check for the \"default\" export\n  Backgrid = 'default' in Backgrid ? Backgrid.default : Backgrid;\n\n  ...your code...\n\n});\n```\n\nor \n\n```js\nimport {Backgrid} from 'backgrid_es6';\n```\n\n## Documentation\n\nAs this project is meant to be a full compatible drop-in replacement for Backgrid.js, the same [docs](http://backgridjs.com/) apply.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuasofoundries%2Fbackgrid_es6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuasofoundries%2Fbackgrid_es6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuasofoundries%2Fbackgrid_es6/lists"}