Our pure JavaScript Scheduler component


Post by ppezoldt »

Hi,

we are using the tree feature of scheduler pro in version 6.1.5 and have the following problem.

config.features = {
        tree: true
    }

This does not work although it is correct according to the typescript types.
config is of type SchedulerProConfig

However if I use it like this

config.treeFeature = true;

it works, but according to typescript it does not exist

We have the same problem with

cellMenuFeature
cellTooltipFeature
eventTooltipFeature

Kind regards,
Patrick

Attachments
2025-02-04 10_33_17-ProjectScheduler.vue - frontend [WSL_ Ubuntu-22.04] - Visual Studio Code.png
2025-02-04 10_33_17-ProjectScheduler.vue - frontend [WSL_ Ubuntu-22.04] - Visual Studio Code.png (14.77 KiB) Viewed 111 times

Post by ghulam.ghous »

Hey Patrick,

Please use the BryntumSchedulerProProps instead of SchedulerProConfig. See this demo, I have tried usign treeFeature there in the config and no issues whatsoever.

import { type BryntumSchedulerProProps } from '@bryntum/schedulerpro-vue-3';

http://bryntum.com/products/schedulerpro/examples/frameworks/vue-3-vite/basic/dist/

import { type BryntumSchedulerProProps } from '@bryntum/schedulerpro-vue-3';

export const schedulerProProps : BryntumSchedulerProProps = {
    startDate         : new Date(2024, 0, 1, 6),
    endDate           : new Date(2024, 0, 1, 20),
    viewPreset        : 'hourAndDay',
    rowHeight         : 50,
    barMargin         : 5,
    multiEventSelect  : true,
    resourceImagePath : 'users/',
    treeFeature       : true,
    columns           : [
        {
            type  : 'resourceInfo',
            text  : 'Name',
            field : 'name',
            width : 130
        }
    ],
    // CrudManager arranges loading and syncing of data in JSON form from/to a web service
    project : {
        loadUrl  : 'data/data.json',
        autoLoad : true
    }
};

Post by ppezoldt »

ok thank you
now it works for me too


Post Reply