46 lines
831 B
TypeScript
46 lines
831 B
TypeScript
import { PayloadCollectionConfig } from '../../src/collections/config/types';
|
|
|
|
const Select: PayloadCollectionConfig = {
|
|
slug: 'select',
|
|
labels: {
|
|
singular: 'Select',
|
|
plural: 'Selects',
|
|
},
|
|
fields: [
|
|
{
|
|
name: 'Select',
|
|
type: 'select',
|
|
options: [{
|
|
value: 'one',
|
|
label: 'One',
|
|
}, {
|
|
value: 'two',
|
|
label: 'Two',
|
|
}, {
|
|
value: 'three',
|
|
label: 'Three',
|
|
}],
|
|
label: 'Select From',
|
|
required: true,
|
|
},
|
|
{
|
|
name: 'Radio',
|
|
type: 'radio',
|
|
options: [{
|
|
value: 'one',
|
|
label: 'One',
|
|
}, {
|
|
value: 'two',
|
|
label: 'Two',
|
|
}, {
|
|
value: 'three',
|
|
label: 'Three',
|
|
}],
|
|
label: 'Choose From',
|
|
required: true,
|
|
},
|
|
],
|
|
};
|
|
|
|
export default Select;
|