@ax2/xms-crud-module

1.24.0 • Public • Published

CRUD module

Add a CRUD module to the XMS

Setup

Install the module

yarn add @ax2/xms-crud-module

Load the module into the core

// config/core.config.js

export default {
  modules: [
    require('@ax2/xms-crud-module'),
  ],
};

Configuration

// config/module.config.js

export default {
  '@ax2/xms-crud-module': {
    types: [                // List of types for which you want to enable CRUD
      {
        id: 'users',        // Type ID (used in listing queries)
        idSingular: 'user', // Singular type ID (used in edit queries)
        menuItem: true,     // Set to true to add a menu item to the XMS navbar
        fields: [           // List of fields for which you want to enable CRUD
          {
            key: 'id',      // Field ID
            label: 'ID',    // UI label for this field
            type: 'text',   // Field type (text, number,...)
            listing: true,  // Wether to show this field in the listing
            edit: false,    // Wether to show this field in the edit form
          },
        ],
      },
    ],
  },
};

Readme

Keywords

none

Package Sidebar

Install

npm i @ax2/xms-crud-module

Weekly Downloads

1

Version

1.24.0

License

none

Unpacked Size

470 kB

Total Files

74

Last publish

Collaborators

  • ax2-owner