keystone
Version:
Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose
28 lines (27 loc) • 686 B
JavaScript
module.exports = {
Field: require('../SelectField'),
Filter: require('../SelectFilter'),
readme: require('fs').readFileSync('./fields/types/select/Readme.md', 'utf8'),
section: 'Miscellaneous',
spec: [{
label: 'Text Select',
path: 'textSelect',
ops: [
{ label: 'Caramel', value: 'caramel' },
{ label: 'Chocolate', value: 'chocolate' },
{ label: 'Strawberry', value: 'strawberry' },
{ label: 'Vanilla', value: 'vanilla' },
],
value: 'chocolate',
}, {
label: 'Numeric Select',
path: 'numericSelect',
numeric: true,
ops: [
{ label: 'One', value: 1 },
{ label: 'Two', value: 2 },
{ label: 'Three', value: 3 },
],
value: 'chocolate',
}],
};