Premium support for our pure JavaScript UI components


Post by clovisapp »

Hi Bryntum team,

We setup range for Bryntum Calendar - Agenda mode of 365 days. When using this range, the tooltips in the arrows show a wrong message "Previous [object Object]".

Question:

  • how to customise the text in these tooltips ? (also providing i18n languages in the string)

Thanks a lot for your help !

Attachments
Screenshot 2024-03-21 at 14.58.43.png
Screenshot 2024-03-21 at 14.58.43.png (152.1 KiB) Viewed 157 times
Screenshot 2024-03-21 at 14.59.06.png
Screenshot 2024-03-21 at 14.59.06.png (111.72 KiB) Viewed 157 times

Image


Post by mats »

Can you please provide us a full test case so we can debug this?


Post by Animal »

The Calendar views all report a stepUnit property which the tooltip there shows:

Screenshot 2024-03-22 at 10.24.08.png
Screenshot 2024-03-22 at 10.24.08.png (97.5 KiB) Viewed 135 times

What does your view report as its stepUnit?


Post by Animal »

Looks like it doesn't know how to localize 365 d

Any reason why you don't just use '1 y'?


Post by Animal »

It definitely should work, because this example works: https://codepen.io/Animal-Nige/pen/RwdJgjR?editors=0010

The tooltip knows that it's a two day range. Will dig in.

Screenshot 2024-03-22 at 10.34.27.png
Screenshot 2024-03-22 at 10.34.27.png (117.27 KiB) Viewed 134 times

Post by Animal »

This will be fixed in the next release: https://github.com/bryntum/support/issues/8862


Post Reply