Our powerful JS Calendar component


Post by jeff.wang »

Hi

there are some questions i don't find method in apis:
1 how to disable the double click on cell day that will create new event;
2 how to disable switch to pre month or next month when click the first row days or last row days
3 how to disable the hover tooltips in the more list like below.
Image

thank you!

Jeff


Post by tasnim »

  1. Use this https://bryntum.com/docs/calendar/api/Calendar/view/Calendar#config-autoCreate set autoCreate : 'drag'
  2. I created a feature request for this: https://github.com/bryntum/support/issues/4832
  3. I created a feature request for this also: https://github.com/bryntum/support/issues/4833

Post by jeff.wang »

It is ok.

Thank you!


Post by jeff.wang »

How to disable the tips in preMonth or nextMonth button like below:

Image


Post by Animal »

The tooltips for those buttons are localizable. See the files in the Calendar/localization directory for guidance.

In particular, these are the two properties that create output for those tooltips:

    Calendar : {
        next       : range => `Next ${range}`,
        previous   : range => `Previous ${range}`,
    }

You need to add to your locale file to make it look right in your locale language, or return '' to have no tooltip at all:

    Calendar : {
        next       : () => '',
        previous   : () => '',
    }

Post by Animal »

For your option 2, "2 how to disable switch to pre month or next month when click the first row days or last row days", the following ticket which has been requested before should cover it: https://github.com/bryntum/support/issues/3554

It allows:

    modes : {
        month : {
            disableOtherMonthCells : true
        }
    }

Which will make the cells for the "other month" slightly faded out (using CSS, so you can customize it) and non-interactive.

It will also support:

    modes : {
        month : {
            hideOtherMonthCells : true
        }
    }

Which will mean the the cells for the "other month" do not show at all.

I'm hoping to get this into the next release.


Post by jeff.wang »

I'm hope to get it in the next version asap.

Thank you!

Jeff


Post Reply