Necessitates Proper Modularity

    gridy-grid-bundle

    2.0.7 • Public • Published

    Gridy Grid All-in-One Bundle

    This is Gridy Grid datatables library bundle can be used to load all needed Gridy Grid code with one file for convenience or to have wide browser support including legacy versions like Internet Explorer 11.

    Usage

    npm i gridy-grid-bundle grid-grid-antd
    
    <script src="/node_modules/gridy-grid-bundle/dist/gridy-grid-bundle.js"></script>
    <gridy-grid theme="antd" id="gridyGrid">
        <gridy-data-source dataref="gridData">
            <gridy-data-field title="Title" path="$.title"></gridy-data-field>
            <gridy-data-field title="Price" path="$.price"></gridy-data-field>
        </gridy-data-source>
        <gridy-spinner></gridy-spinner>
        <gridy-filter id="gridyFilter"></gridy-filter>
        <gridy-table id="gridyTable" rd-tpl-fmt="handlebars">
        </gridy-table>
        <gridy-pager id="gridyPager"></gridy-pager>
        <gridy-table-info id="gridyTableInfo"></gridy-table-info>
    </gridy-grid>

    note: grid-grid-antd is optional and depends on theme of your choice, you will have to set tpl-path to folder with templates (gridy-grid.tpl.html, table.tpl.html and others), and dt-css-path for styles file in case you not installed theme (-antd, -jquery or -default) package

    <script src="/node_modules/gridy-grid-bundle/dist/gridy-grid-bundle.js"></script>
    <gridy-grid theme="antd" id="gridyGrid" tpl-path="/tpl/" dt-css-path="tpl/">
        <gridy-data-source dataref="gridData">
            <gridy-data-field title="Title" path="$.title"></gridy-data-field>
            <gridy-data-field title="Price" path="$.price"></gridy-data-field>
        </gridy-data-source>
        <gridy-spinner></gridy-spinner>
        <gridy-filter id="gridyFilter"></gridy-filter>
        <gridy-table id="gridyTable" rd-tpl-fmt="handlebars">
        </gridy-table>
        <gridy-pager id="gridyPager"></gridy-pager>
        <gridy-table-info id="gridyTableInfo"></gridy-table-info>
    </gridy-grid>

    Bundle build

    Just pack everything in one file. No transpilations. Esm modules with components will be bundled in one file.

    npm run build
    

    Usage

    check index.html for example serve it with http server like this:

    npx http-server
    

    Install

    npm i gridy-grid-bundle

    DownloadsWeekly Downloads

    134

    Version

    2.0.7

    License

    ISC

    Unpacked Size

    1.73 MB

    Total Files

    24

    Last publish

    Collaborators

    • avatar