Git Product home page Git Product logo

loopback-component-react-admin's Introduction

loopback-component-react-admin

Support react-admin for Loopback 3.0.

Install on Loopback as a component

NPM

  1. Run npm install --save loopback-component-react-admin
  2. Set the module in your component-config.json (loopback server endpoint).
  "loopback-component-react-admin": {
    "pattern": [
      "*.find"
    ],
    // More options here
  }

Yarn

We recommend to use yarn instead of npm:

  1. yarn add loopback-component-react-admin
  2. Set the module in your component-config.json
  "loopback-component-react-admin": {
    "pattern": [
      "*.find"
    ],
    // More options here
  }

Options

pattern: Array of String

Method patterns that Content-Range header will be added.

Accepted patterns: See https://loopback.io/doc/en/lb3/Remote-hooks.html#wildcards.

Default value: [ "*.find" ], which auto added to find method of all models.

Note

This is the updated version of loopback3-xTotalCount and aor-loopback. On client side (mean react-admin), we don't need to change anything, just use ra-data-simple-rest as usual.

loopback-component-react-admin's People

Contributors

kimkha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

loopback-component-react-admin's Issues

Delete method is not working

The delete method is not working, this is the error, help is much appreciated.

The response to 'DELETE' must be like { data: { id: 123, ... } }, but the received data does not have an 'id' key. The dataProvider is probably wrong for 'DELETE'

include filter stops working

The include filter stops working after enabling this component. When used, no related data is returned.
Using loopback3-xTotalCount instead, doesn't seem to miss the nested data (edit: but as I later found out doesn't work with react-admin).

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.