[REACT] Step does not work for me on a timeField
Posted: Tue Mar 12, 2024 12:44 pm
I got the config for a calendar in my file here
let calendarConfig: Partial<CalendarFeaturesConfigType> = {
eventEdit: {
items: {
startTimeField:{
type : 'time',
editor : {
step : '5min'
}
},
endTimeField:{
editable: true,
step: '5m'
},
allDay: null,
nameField: null,
resourceField: {
label: t("trackTypes"),
listeners: {
change(event: BryntumChangeEvent) {
const find = calendars.find(calendar => calendar.id === +event.value);
console.log(event.value)
console.log(find)
setEventEditStep(find && find.cronofyTimeSlot ? find.cronofyTimeSlot: 30)
},
},
type: "combo",
picker: {
allowGroupSelect: false
},
multiSelect: false,
editable: false,
weight: 0,
required: true
},
recurrenceCombo: null,
commentsField: {
label: t("comments"),
type: "textarea",
name: "comments",
},
},
}
}
I tried multiple things that should work for step. But it's not changing.