Notable Peru Mariachis

    react-table-sorter

    2.0.0 • Public • Published

    A React.js Table Sorter Component

    A sortable table component using Facebook's React. Build out as a reusable component from the demo made by bgerm.

    View the demo repo.

    View the running demo.

    Features:

    • Remote data loading
    • Sortable columns
    • Filterable columns
    • Repeatable headers

    Usage

    Sortable Table takes two arguments, source and config. source is a string designating the path to a JSON formatted data source and config is a JavaScript object containing information about the structure of the table.

    Example

    var CONFIG = {
      sort: { column: "col2", order: "desc" },
      columns: {
        col1: { name: "Col1", filterText: "", defaultSortOrder: "desc"},
        col2: { name: "Col2", filterText: "", defaultSortOrder: "desc"},
        col3: { name: "Col3", filterText: "", defaultSortOrder: "desc"}
      }
    };
    
    React.renderComponent(<TableSorter dataSource="/api/data.json" config={CONFIG} headerRepeat="5" />, document.getElementById("table-sorter"));
    

    Running the Demo

    lute is a quick solution.

    npm install -g lute
    lute
    

    And now view at: http://localhost:8080/example.

    Keywords

    none

    Install

    npm i react-table-sorter

    DownloadsWeekly Downloads

    11

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • andymking
    • jason.mills
    • kamu-49
    • liz.thorne
    • sramkumar
    • robbe1912
    • st-awaas
    • jblackowiak
    • smiles.socialtables
    • alok2k5singh
    • sarahu-cv
    • tochukwuibe
    • mikepato
    • brandonheyer
    • beeallen
    • jrnail23
    • socialtables-engineering
    • yi.chen
    • katherine.thompson
    • timfoley
    • hmbang
    • pixiephreak
    • mattmcclure
    • socialtables-deployer
    • gvorvik
    • briankim4311
    • andrewcsontos
    • jmorley
    • staycalm0
    • adamlind
    • nnarra
    • ashanevs
    • sarawegmann
    • azaki
    • ishak
    • johnbryant262
    • pinko-fowle
    • ldelarosa
    • pho3nixf1re
    • _evilnix_
    • sarthak.chatterjee
    • joshlartz
    • kgardi
    • otaghlabi
    • dwicks-socialtables
    • jonathandaigle
    • j.martin