Customize "more" text #26
Replies: 4 comments 4 replies
-
@Kistelekig98 Thanks. I'm happy to help implement this. If you have some spare time, it would be helpful if you could try to search the tui calendar repo and documents site to see if they expose that capability. If nothing found we could ask the question on the repo. |
Beta Was this translation helpful? Give feedback.
-
@Kistelekig98 It looks like the customization happens in JS, by overriding the existing methods. I need to figure out how to implement this from C#. I'm open to ideas. |
Beta Was this translation helpful? Give feedback.
-
@Kistelekig98 Making a little progress on this one: In var calendarTemplate = new TUITemplate();
calendarTemplate.AddMonthGridHeaderExceed(@"return '<span class=""weekday-grid-more-schedules"">+' + hiddenSchedules + ' says gismofx' + '</span>';"); These customizable functions are coming here: Lots more functions need to be added for full customization. Some customization can be somewhat complex and I don't have a C# solution yet. Maybe it's not necessary and it may be that you have the template function call into some JS code that the user has to write. I pushed the updates to the DEV branch if you want to see and if you want to help create some of the functions for the customization that you want. I'd happily accept a pull request. |
Beta Was this translation helpful? Give feedback.
-
@Kistelekig98 I've pushed this customization for "more" into the latest pre-release 1.0.0-beta3.0 on nuget. |
Beta Was this translation helpful? Give feedback.
-
It would be great, if I could customize the "more" text in month view. I can set the daynames to hungarian, but the "more" remains english yet :)
Beta Was this translation helpful? Give feedback.
All reactions