Our powerful JS Calendar component


Post by eangelov90 »

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
Untitled.png (117.1 KiB) Viewed 601 times

Post by eangelov90 »

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?


Post by alex.l »

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.

All the best,
Alex


Post by eangelov90 »

Can the comment in "Calendar/view/Calendar" also be fixed?

Attachments
Untitled.png
Untitled.png (51.32 KiB) Viewed 596 times

Post by alex.l »

Yes, it will! Thank you for pointing out.

All the best,
Alex


Post by eangelov90 »

Thanks for the quick response.


Post Reply