I want to change only first column has a link to edit, but others column is painted as normal label.
In second columns, that is a column with type String and use editor: 'ckEditor'.
My test models is :
'use strict';
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ProductCategorySchema = new Schema({
Name: {
type: String,
required: true,
index: true,
list:true,
form: {label: 'Product Category'}
},
Description: {
type: String,
list:true,
form: {
type: 'textarea',
editor: 'ckEditor',
label: 'Description'
}
},
ParentCategory: {
type: Schema.Types.ObjectId,
ref: 'ProductCategory',
list:true,
form: {
label: 'Parent Category',
help: 'For root category, leave this field blank!'
}
},
Status: {
type: Boolean,
default: true,
list:true,
},
CreatedAt: {
type: Date,
readonly: true,
default: Date.now,
form: {hidden: true}
}
});
var ProductCategory = mongoose.model('ProductCategory', ProductCategorySchema);
module.exports = ProductCategory;
This is my test of your great project for today.
Thanks in advance