Add a CRUD module to the XMS
yarn add @ax2/xms-crud-module
// config/core.config.js
export default {
modules: [
require('@ax2/xms-crud-module'),
],
};
// 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
},
],
},
],
},
};