Welcome to the JavaScript feedback portal. We’re happy you’re here! If you have feedback on how to improve the JavaScript, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hi,

We make extensive use of cellTemplate and eventTemplate to customize calendar cells and how the events are rendered. It's very flexible.

However it would be much more flexible if we could also also have a custom viewTemplate where we could define our own views and render event data as we wish.

Here's an example in React:

We could use the ViewDirective with option="Custom" instead of "Day" or "Week" to tell the scheduler this is a custom view.

We pass in a displayName (already supported) and a viewTemplate prop:

Empty


The viewTemplate simply returns the HTML/components to render. It could be a Table, a List or any other custom component.

Empty


This would open the big possibility to have custom views in a very simple and effective way. 

All the schedule component needs to do is use the content returned to the viewTemplate callback just like it does with eventTemplate and cellTemplate and other templates already.

This delegates the creation of new views to the developer making the Schedule component support an infinite and variation of views without much effort.

Empty





I know there have been many requests previously about "can you add this view, can you add that view?". By supporting a "viewTemplate" anyone would be able to create their custom views easily.