src/components/day/editForm/Day.edit.year.js
export default [
{
wieght: 200,
type: 'select',
datasrc: 'values',
key: 'fields.year.type',
label: 'Type of input',
data: {
values: [
{
label: 'Number',
value: 'number'
},
{
label: 'Select',
value: 'select'
},
]
}
},
{
weight: 203,
type: 'number',
input: true,
key: 'fields.year.minYear',
label: 'Minimum Year',
placeholder: '1900',
tooltip: 'The minimum year that can be entered.'
},
{
weight: 204,
type: 'number',
input: true,
key: 'fields.year.maxYear',
label: 'Maximum Year',
placeholder: '2030',
tooltip: 'The maximum year that can be entered.'
},
{
weight: 210,
type: 'textfield',
input: true,
key: 'fields.year.placeholder',
label: 'Placeholder',
placeholder: 'Year Placeholder',
tooltip: 'The placeholder text that will appear when Year field is empty.'
},
{
weight: 215,
type: 'checkbox',
label: 'Hidden',
tooltip: 'Hide the Year part of the component.',
key: 'fields.year.hide',
input: true
},
];