Our powerful JS Calendar component
From the doc it appears that it should be possible to configure/disable only specific items in the tbar.
When i try to only remove todayButton & prevButton nothing happens.
Open https://bryntum.com/examples/calendar/basic/ and add the following to the configuration
tbar : {
todayButton: null
, prevButton: null
}
The result is that both the today and previous buttons are still present and they work.
Am i configuring the tbar wrong or is it just broken?
-
Attachments
-
- Untitled.png (117.1 KiB) Viewed 634 times
I am in the wrong. For it to work it should be:
tbar : {
items: {
todayButton: null
, prevButton: null
}
}
Can we get at least change the documentation so that tbar config has an example of how to use it properly?
Hi eangelov90,
Here is docs for that: https://bryntum.com/docs/calendar/api/Calendar/view/Calendar#config-tbar
A config object containing definitions of the toolbar of the Calendar.
Its items
property defines the buttons and informational widgets provided by default.
There are several provided widgets, each of which may be reconfigured using an object, or disabled by configuring them as null
.
[...]
We will update it with an example. Thank you for your question.
Can the comment in "Calendar/view/Calendar" also be fixed?
-
Attachments
-
- Untitled.png (51.32 KiB) Viewed 629 times
Yes, it will! Thank you for pointing out.
Thanks for the quick response.