Discuss anything related to web development but no technical support questions


Post by john.ubeeo »

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.


Post by tasnim »

Hi,

Welcome to Bryntum Forum!

Thanks for reporting, we'll investigate it. Here is the ticket to track progress https://github.com/bryntum/support/issues/8792

Best regards,
Tasnim


Post Reply