javascript - Generate Keystone List Name Programmatically -
how go generating keystone list name programmatically?
i'm looking this...
var font = new keystone.list('font', { // ↓↓↓ ↓↓↓ here ↓↓↓ map: { name: 'typefacename + weightname' }, track: true, schema: { collection: 'font' } }); font.add({ typefacename: { type: string, initial: true, required: true}, weightname: { type: string , initial: true, required: true} });
which generate name, so.
Comments
Post a Comment