Friday, January 31, 2014

KendoUI Mobile - selecting startup view

Take into accout the note below!

        <div data-role="footer">
            <div data-role="tabstrip" id="tabstrip">
                <a href="#tabstrip-viewnotes" data-icon="recents">View Notes</a>
                <a href="#tabstrip-addnote" data-icon="add">Add Note</a>

new$(document.body), {
     initial: "tabstrip-addnote"

Where tabstrip-addnote is a view.

Source -

Note: After writing the article and implementing initial view, strange tings started to happend. Some links refused to work and after some time they fixes by nothing? I spend few hours until I realized it was caused by this initial attribute. So, better avoid its usage. It could be fixed in some moment of time, but I cant wait

No comments:

Post a Comment