cheetah-grid-icon-svg-loader

1.13.0 • Public • Published

cheetah-grid-icon-svg-loader

Webpack loader that loads the icon module for Cheetah Grid from SVG.

Installation

npm install --save-dev cheetah-grid-icon-svg-loader

Usage

const icons = {
  gridOn: require("cheetah-grid-icon-svg-loader!material-design-icons/image/svg/production/ic_grid_on_24px.svg"),
};

cheetahGrid.register.icons(icons);

// …

const grid = new cheetahGrid.ListGrid({
  header: [
    // …
    {
      field: "…",
      caption: "…",
      icon: {
        name: "gridOn",
        width: 24,
      },
    },
  ],
  // …
});

Package Sidebar

Install

npm i cheetah-grid-icon-svg-loader

Weekly Downloads

9

Version

1.13.0

License

MIT

Unpacked Size

15.2 kB

Total Files

8

Last publish

Collaborators

  • ota-meshi