loopback-component-react-admin

1.0.0 • Public • Published

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. On client side (mean react-admin), we don't need to change anything, just use ra-data-simple-rest as usual.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i loopback-component-react-admin

      Weekly Downloads

      12

      Version

      1.0.0

      License

      MIT

      Unpacked Size

      26.1 kB

      Total Files

      11

      Last publish

      Collaborators

      • kimkha