react-table
React table
Demo & Examples
npm installnpm run watch
Installation
npm install react-flex-grid --save
Usage
;; const tableConfig = classNames: headerRowClass: "tableHeading" tbodyRowClass: "tableRow" tbodyColClass: "tableCol" tableName: "Flex_Table" columns: "id": "ipAddress" "name": "IP Address" "options": "valueParam": "ipAddress" "style": "columnStyle": "width": 100 "headerStyle": {} "dataStyle": {} "id": "installedVersion" "name": "Installed Version" "options": "valueParam": "otherInfo" "version" "sortData":true "columnType": "Number" //By default it will take "String" type for sorting "style": "columnStyle": {} "headerStyle": {} "dataStyle": {} "id": "machineDetails" "name": "Machine Details" "options": "valueParam": "machineDetails" "displayText" "sortingKey": "machineDetails" "value" "sortData":true "columnType": "Number" //By default it will take "String" type for sorting "style": "columnStyle": {} "headerStyle": {} "dataStyle": {} ; const tableStyle = "table": {} "trStyle": "borderBottom": "1px solid #cccccc" "padding": "10px 0" "tBodyRowstyle": "fontSize": "13px" "alignItems": "center" "tHeadRowStyle": {} "thStyle": "textAlign": "left" "tdStyle": "textAlign": "left" ; const tableData = "ipAddress": "192.168.1.1" "otherInfo": "version": "53""machineDetails":"displayText": "machine 1""value":4 "ipAddress": "192.168.1.3" "otherInfo": "version": "45" "machineDetails":"displayText": "machine 2""value":60; <Grid options=tableConfig style=tableStyle data=tableData/>