Our pure JavaScript Scheduler component


Post by SIM-LTD »

Hi

We wanted to hide/show the summary via the property "disabled" but it seems not effective

In your online demo (https://www.bryntum.com/examples/scheduler/summary/) we simply added
features: {
summary: {
disabled : true,
renderer: ({ events }) => events.length || ""
},
}
But the summary at the bottom of the scheduler remains visible. (look the screenshot)

According to the documentation (look the screenshot =https://www.bryntum.com/docs/scheduler/#Scheduler/feature/Summary

Set 'disabled' to the property summary' intend to disabled the plugin state.
So even if we set 'disabled = true' then any event added will increase the summary total...

Hence, how to programmatically hide the summary?
We were thinking that this approach would be the same as for the Labels or dependencies, where 'disabled' allows to hide/display programmatically the usage of plugin accordingly,
Attachments
Capture d’écran 2019-09-13 à 12.43.22.png
Capture d’écran 2019-09-13 à 12.43.22.png (130.27 KiB) Viewed 2116 times
Capture d’écran 2019-09-13 à 12.36.48.png
Capture d’écran 2019-09-13 à 12.36.48.png (217.29 KiB) Viewed 2116 times

Post by mats »

This feature doesn't support being disabled yet I'm afraid.

Post by SIM-LTD »

Hi

Thank you for your return.
Will it be possible to update the Doc (someday) with all the features that do not support being disabled. That will be useful to save sometime

Just to let you know why we needed this.

When it comes to loading massing records, having both :
- showEventCount
- summary (event)
make the overall process to render the scheduler a bit longer than if you do not have those 2 property active; which is logical.
Nonetheless, as we have a features panel that enables users to configure on the fly the Scheduler with almost all the standard features, we wanted to add these 2 (showEventCount + summary) enabled/disabled, so as to speed up the loading.

As a matter of fact your demo 'Big Data Set' does not show any of these 2 properties in the scheduler; we believe that is was done on purpose so as to make the renderer more efficient.

If you have any workaround, let us know; We'll appreciate it.

Post by pmiklashevich »

Pavlo Miklashevych
Sr. Frontend Developer


Post by SIM-LTD »

Hi Pavel

This is very nice to you... We really appreciate that.

So we'll try that ou and let you know.

Thank you very much.

Post by SIM-LTD »

Hi Pavel

We just download the nightly build but did not succeed to make the summary hidden/displayed
Maybe we're missing something.

We have set a sample from your online demo ( https://www.bryntum.com/examples/scheduler/fillticks/ )
Look at the screenshot to adjust this demo so as to get the summary

Thank you for your feedback
Attachments
Capture d’écran 2019-09-17 à 12.55.58.png
Capture d’écran 2019-09-17 à 12.55.58.png (253.7 KiB) Viewed 2086 times

Post by mats »

Your code is wrong. Try
scheduler.features.summary.disabled = true;

Post by SIM-LTD »

Hi

As you can see the screenshot, we did try this out before posting; But did not work too.

Any other idea?
Attachments
Capture d’écran 2019-09-17 à 13.55.16.png
Capture d’écran 2019-09-17 à 13.55.16.png (221.77 KiB) Viewed 2084 times
Capture d’écran 2019-09-17 à 13.50.15.png
Capture d’écran 2019-09-17 à 13.50.15.png (226.31 KiB) Viewed 2084 times

Post by mats »

Just tried it, works fine - please make sure you downloaded correct trial

Post by SIM-LTD »

Hi

This test case is made online!
We have set a sample from your online demo ( https://www.bryntum.com/examples/scheduler/fillticks/ )
This is not in our dev environment.

Then, maybe, we were wrong to test online first, since the nightly build is not online.
So, we'll try on our environment with the last nightly build.

Sorry for having taken you some of your time. We'll let you know how this enhancement works in our side

Thank you

Post Reply