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

RequireJS + Tabstrip

3 Answers 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 19 Apr 2015, 04:32 PM

Hi

I am trying to get RequireJS and kendo mobile to play nicely. I have followed the blog post : http://blogs.telerik.com/appbuilder/posts/14-03-27/structuring-hybrid-mobile-applications

 And this works as a  fine but i have one major challenge (documentation is slim on requireJS), I have tried to get a tabstrip working however hrefs simply do not work, - to activate templates in a similar fashion to the tabstrip demo project.

 It can never find the template no matter what i call it.

 I have attached a sample project.

 

 

3 Answers, 1 is accepted

Sort by
0
Peter
Top achievements
Rank 1
answered on 19 Apr 2015, 04:51 PM

Hi

I managed to fix the top partially in that the template now renders, but i am unable to maintain the header and footer on the views without manually copying it into every view...

0
Peter
Top achievements
Rank 1
answered on 19 Apr 2015, 04:53 PM

Hi 

 To clarify, where would i put the following code as per the tabstrip example so that it is on every view?

 

<div data-role="layout">
    <div data-role="header">
        <div data-role="navbar">
            <span data-role="view-title"></span>
        </div>
    </div>

    <div data-role="footer">
        <div data-role="tabstrip">
            <a href="views/todos.html" data-icon="home">Home</a>
            <a href="#addPost" data-icon="settings">Settings</a>
            <a href="views/contacts.html" data-icon="contacts">Contacts</a>
        </div>
    </div>
</div>

 

 

 

 

0
Petyo
Telerik team
answered on 21 Apr 2015, 01:54 PM
Hello Peter,

you should put the layout definition in the html document, which is loaded initially.

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