Syntax for string[] template attr binding?

3 posts, 1 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 17 Jun 2012 Link to this post

    If I just have a simple array of strings in a property, how do you access that in the bound template seeing as there's no object to bind properties to?

    Example:
    <ul id="results" data-template="item-template" data-bind="images">
     
    </ul>

    <script id="item-template" type="text/x-kendo-template">
        <li><img data-bind="attr: {src: ??? }" /></li>
    </script>
  2. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2592 posts

    Posted 18 Jun 2012 Link to this post

    Hello Steve,

    Please check this topic from our online documentation - it discusses the binding to array of primitive types.

     

    Greetings,
    Iliana Nikolova
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 18 Jun 2012 Link to this post

    AH HA, the magical "this"

    Thanks much!
Back to Top