Our pure JavaScript Scheduler component


Post by matt12 »

Good day,

In the example https://bryntum.com/products/scheduler/docs/api/Core/widget/TimeField, if I change the live demo code for the minute step to be 10, it does not do anything.

new TimeField({
    label    : 'Editable',
    editable : true,
    appendTo : document.body,
    value    : new Date(2024, 0, 1),
    picker   : {
        items : {
            minute : {
                step : 10
            }
        }
    }
});

I suppose it should change the minutes by +/- 10 minutes when i press up or down keys at the minute field, or change the minute options when i press the clock icon that will show the time dropdown options.


Post by alex.l »

Hi matt12,

Thank you for the report! Look like a bug, I've opened a ticket here https://github.com/bryntum/support/issues/11343
You can subscribe on ticket updates to be notified when it's done.

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy

We do not write the code in bounds of forum support. If you need help with development, contact us via bryntum.com/services


Post by johan.isaksson »

Hi,

Last year our old time field was replaced with a new one, but we missed to update this docs snippet - apologies for that. There is no step config on the minute "picker", step is configured directly on the TimeField, please see https://bryntum.com/products/grid/docs/api/Core/widget/TimeField#config-step

Have updated the ticket to reflect this, docs will be fixed.

Best regards,
Johan Isaksson

Post by matt12 »

Reading the docs, the data type to be used for the https://bryntum.com/products/grid/docs/api/Core/widget/TimeField#config-step is String | Number | DurationConfig.

How do I customise steps for each unit of the picker like

    step: [{
        unit: "hour",
        magnitude: 2
    }, {
        unit: "minute",
        magnitude: 1
    }, {
        unit: "second",
        magnitude: 10
    }]

Post by Animal »

This is not currently possible.

Here is a ticket for it: https://github.com/bryntum/support/issues/11368


Post Reply