This is a migrated thread and some comments may be shown as answers.

Where are the template attributes documented?

1 Answer 52 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 06 Aug 2014, 09:50 AM
Hi guys,

I need to customise the editable fields of my events, which I note I can do by defining a template for the editor using this 

editable:
{
template: $("#editor").html()
},

configuration parameter. However, looking at example code like this:

<h3>Edit meeting</h3>
<p>
<label>Title: <input name="title" /></label>
</p>
<p>
<label>Start: <input data-role="datetimepicker" name="start" /></label>
</p>
<p>
<label>End: <input data-role="datetimepicker" name="end" /></label>
</p>

I note there are custom attributes here. Where are they documented?

Cheers, Paul.

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 08 Aug 2014, 05:36 AM
Hi Paul,

If you are pointing at the "data-xxxx" attributes - these attributes are used by KendoUI MVVM binding. In current case when you edit given event it's object is bind to the editors inside the edit form using MVVM (this allows tracking the changes in the editors). For example the "data-role" attribute will be used to initialize specific Kendo UI widget from current element. For more information on the matter you can check the following help article:

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Scheduler
Asked by
Paul
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or