Premium support for our pure JavaScript UI components


Post by gorakh.nath »

Hi team,
I have to show the travel time as described given in example here : https://bryntum.com/products/schedulerpro/examples/travel-time/
I added the code as per the documentation given here: https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/feature/EventBuffer
But when I am adding this feature and enabling by :-

 features={{
                        buffer: true
}}

In event I am adding preamble and postamble like this:-

 {
                "calendar": "early",
                "id"           : "r1",
                "resourceId"   : 1,
                "name"         : "Restart server",
                "iconCls"      : "b-fa b-fa-sync",
                "startDate"    : "2022-11-01 06:00",
                "duration"     : 1,
                "durationUnit" : "h",
                "draggable"    : true,
                "resizable"    : true,
                "manuallyScheduled": true,
                "eventColor": "green",
                "preamble" : '1 hour', 
                "postamble" : '30 minute'
            }

After adding all this configuration its start failing and showing error as:-
Uncaught Error: Feature 'buffer' not available, make sure you have imported .
I am attaching the sample application and screenshot of the same error.

Attachments
Screenshot 2023-02-01 at 4.28.40 PM.png
Screenshot 2023-02-01 at 4.28.40 PM.png (102.35 KiB) Viewed 138 times
travelTime.zip
(3.88 MiB) Downloaded 12 times

Post by alex.l »

Please see that the correct name for the feature is eventBuffer https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/feature/EventBuffer

All the best,
Alex


Post Reply