GithubHelp home page GithubHelp logo

bootstrap3-grid's Introduction

bootstrap3-grid


源码来自Simple-Paging-Grid,把它改为了CMD模块的


Build Status Coverage Status

Install

$ npm install bootstrap3-grid --save

Usage

<div id="exampleGrid">
</div>
require('bootstrap3-grid');
$("#exampleGrid").simplePagingGrid({
    columnNames: ["OrderLineID", "Name", "Price ($)", "Quantity"],
    columnKeys: ["OrderLineID", "Name", "Price", "Quantity"],
    data: [
        { "OrderLineID": 1, "Name": "Pineapple", "Price": 1.50, "Quantity": 4 },
        { "OrderLineID": 2, "Name": "Fresh Spring Onions", "Price": 1.10, "Quantity": 40 },
        { "OrderLineID": 3, "Name": "Oranges", "Price": 0.20, "Quantity": 8 },
        { "OrderLineID": 4, "Name": "Apples", "Price": 1.50, "Quantity": 5 },
        { "OrderLineID": 5, "Name": "Raspberries", "Price": 1.50, "Quantity": 20 },
        { "OrderLineID": 6, "Name": "Blueberries", "Price": 1.50, "Quantity": 20 },
        { "OrderLineID": 7, "Name": "Pairs", "Price": 1.50, "Quantity": 8 },
        { "OrderLineID": 8, "Name": "Melons", "Price": 1.50, "Quantity": 2 },
        { "OrderLineID": 9, "Name": "Potatoes", "Price": 1.50, "Quantity": 6 },
        { "OrderLineID": 10, "Name": "Sweet Potatoes", "Price": 1.50, "Quantity": 3 },
        { "OrderLineID": 11, "Name": "Cabbages", "Price": 1.50, "Quantity": 1 },
        { "OrderLineID": 12, "Name": "Lettuce", "Price": 1.50, "Quantity": 1 },
        { "OrderLineID": 13, "Name": "Onions", "Price": 1.50, "Quantity": 25 },
        { "OrderLineID": 14, "Name": "Carrots", "Price": 1.50, "Quantity": 30 },
        { "OrderLineID": 15, "Name": "Broccoli", "Price": 1.50, "Quantity": 1 },
        { "OrderLineID": 16, "Name": "Cauliflower", "Price": 1.50, "Quantity": 1 },
        { "OrderLineID": 17, "Name": "Peas", "Price": 1.50, "Quantity": 1 },
        { "OrderLineID": 18, "Name": "Sweetcorn", "Price": 1.50, "Quantity": 2 },
        { "OrderLineID": 19, "Name": "Gooseberries", "Price": 1.50, "Quantity": 20 },
        { "OrderLineID": 20, "Name": "Spring Onions", "Price": 1.50, "Quantity": 9 },
        { "OrderLineID": 21, "Name": "Beetroot", "Price": 0.30, "Quantity": 3 },
        { "OrderLineID": 22, "Name": "Avocado", "Price": 2.30, "Quantity": 1 }]
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.