cheetah-grid-icon-svg-loader

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

Usage no npm install needed!

<script type="module">
  import cheetahGridIconSvgLoader from 'https://cdn.skypack.dev/cheetah-grid-icon-svg-loader';
</script>

README

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,
      },
    },
  ],
  // …
});