Where are the template attributes documented?

2 posts, 0 answers
  1. Paul
    Paul avatar
    24 posts
    Member since:
    Aug 2013

    Posted 06 Aug 2014 Link to this post

    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 

    template: $("#editor").html()

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

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

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

    Cheers, Paul.
  2. Vladimir Iliev
    Vladimir Iliev avatar
    2194 posts

    Posted 08 Aug 2014 Link to this post

    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:

    Vladimir Iliev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top