Giter Club home page Giter Club logo

patsnap-flex-table's Introduction

patsnap-flex-table

flex table for inSight

$ > npm install -g gulp

$ > npm install

$ > npm run dev

Then open index.html, then play with the demo

Single table cell config expample:

Every single table cell data can be a String, Number or a configuration Object

{
  value:'5',//define the value of the cell,if not set,you must handle it on pre/postprocess
  autoBg:true,//the cell need auto Background color highlight,default is true
  sortable:true,//Config if the column is sortable.Only aceept on thead default is true
  isRawHtml:false//Set true if value is a html string(no html escaping),default is false
}

Usage:

  <FlexTable tableData={exampleTableData}
    preProcess={preProcess} //handle passed celldata
    postProcess={postProcess}//hanlde generated <td> dom element
    className='data-table' />
var exampleTableData = {
    "thead": [
        "NAME",
        {value:"COUNT",autoBg:true},
        "TITLE",
        "APD",
        "PBD",
        {value:"Trend",sortable:false}
    ],
    "tbody": [
        [
            "CN1476182A",
            1714,
            "Method of radio chain circuit control resetting or treatment of timer",
            "2003-03-20",
            "2004-02-18",
            {
                type:'chart',
                data:[3, 0, 3, 6]
            }
        ],
        [
            "CN1761260A",
            3012,
            "Method for preventing deadlock in a wireless communications system",
            "2005-09-15",
            "2006-04-19",
            {
                type:'chart',
                data:[3, 0, 3, 6]
            }
        ],
        [
            "CN1937627A",
            1223,
            "Method and apparatus fo handling timers systems",
            "2006-09-20",
            "2007-03-28",
            {
                type:'chart',
                data:[3, 8, 0.5, 9]
            }
        ]        
    ]
};

patsnap-flex-table's People

Contributors

regou avatar wx-ps avatar

Watchers

James Cloos avatar NPC avatar

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.