Our pure JavaScript Scheduler component


Post by JohnMousley »

This maybe an easy question but I need to use a cut down version of my task editor popup when adding a new task. for example, when viewing a task that is already on the scheduler I need to show the notes tab and a custom tab (this is working) when I add a new task, I just want to show the general tab.

Is this possible and if so what is the best way to implement it?


Post by pmiklashevich »

I've opened a ticket to make it possible to detect if the task is a newly created task or not. https://github.com/bryntum/support/issues/2487

After this you just need to set the tabs you want to hidden state in the beforeTaskEditShow listener.

schedulerPro.on({
    beforeTaskEditShow({
        editor
    }) {
        // notes tab for example
        editor.widgetMap.notesTab.hidden =
            true; // or false; depending on the param when the ticket above is solved
    }
})

There is another problem with sizing. Ticket here:
https://github.com/bryntum/support/issues/2488

When these 2 tickets are fixed, you can achieve the goal.

Pavlo Miklashevych
Sr. Frontend Developer


Post by mats »

You can now use https://bryntum.com/docs/scheduler/api/Core/data/Model#property-isCreating to know when a record is being created.


Post Reply