Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-odata-table

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-odata-table

This component provides a table similar to DataTable. You can pass an OData Url and columns you want to show as `props`. Does'not support `$expand` operation in Odata.

  • 1.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

React-OData-Table

This component provides a table similar to DataTable. You can pass an OData Url and columns you want to show as props. Does'not support $expand operation in Odata.

Ìnstallation:

npm i -s react-odata-table

Bootstap CDN:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css">

Usage


import React from 'react'
import ReactDom from 'react-dom'
import { ODataTable } from 'react-odata-table'

var columnsAndKeys =  [
    {serverKey: "ID", visualName: "ID", type: 'num', orderBy: true, key: true},
    {serverKey: "Name", visualName: "Name", type: 'string'}
]

class TestApp extends React.Component {

    render() {

        return (
            <div style={{padding: 10}}>
                <ODataTable
                    columnsAndKeys={columnsAndKeys}
                    odataUrl={"http://services.odata.org/V4/OData/OData.svc/Products"}
                    paginationLocation="top"
                />
            </div>
        )
    }

}

Output

alt text

Keywords

FAQs

Package last updated on 15 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc