Division in an External template

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

    Posted 14 Dec 2011 Link to this post

    Here's a snippitof the template
    <td>\
        <div class='line'>\
            <div class='left_strong_label'>\
                Total Fat\
                <div class='holder'>\
                    #= TotalFat #g\
                </div>\
            </div>\
            <div class='right_light_label'>\
                <div class='holder_strong'>\
                    #= 65 * TotalFat #%\
                </div>\
            </div>\
        </div>\
    </td>\

    Ok sooo...how do I change

    #= 65 * TotalFat #%

    to be
    #= 65 \ TotalFat #%\

    Any attempt to add the slash denotes a newline...?

    Thanks,
    Steve
  2. Answer
    Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 15 Dec 2011 Link to this post

    Hello Steve,

     The JavaScript operator for division is a forward slash "/" - not backslash "\". 

    All the best,
    Petyo
    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 15 Dec 2011 Link to this post

    Well...I guess that makes sense given the following context eh :)

    Thanks,
    Steve
Back to Top