🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@ax2/xms-crud-module

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ax2/xms-crud-module

Add a CRUD module to the XMS

latest
npmnpm
Version
1.25.0
Version published
Maintainers
1
Created
Source

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
          },
        ],
      },
    ],
  },
};

FAQs

Package last updated on 02 May 2024

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