git-svn-id: https://msi/svn/firstRepo/WebClient/trunk@13 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
define(['jquery', 'underscore', 'backbone','text!controls/footer/footerTemplate.html'],
|
||||
function($, _, Backbone, footerTemplate){
|
||||
|
||||
var footer = Backbone.View.extend({
|
||||
//initialize template
|
||||
template:_.template(footerTemplate),
|
||||
|
||||
//render the content into div of view
|
||||
render: function(){
|
||||
this.$el.attr('data-role', 'footer');
|
||||
this.$el.attr('data-position', 'fixed');
|
||||
this.$el.attr('class', 'nav-glyphish-example');
|
||||
this.$el.attr('data-tap-toggle', 'false');
|
||||
//this.el is the root element of Backbone.View. By default, it is a div.
|
||||
//$el is cached jQuery object for the view's element.
|
||||
//append the compiled template into view div container
|
||||
this.$el.append(this.template());
|
||||
|
||||
//return to enable chained calls
|
||||
return this;
|
||||
}
|
||||
});
|
||||
return footer;
|
||||
});
|
||||
@@ -0,0 +1,11 @@
|
||||
<div data-role="navbar" class="nav-glyphish-example">
|
||||
<ul>
|
||||
<li><a href="#noteView" id="noteBtn" data-icon="custom">Blocco note</a></li>
|
||||
<li><a href="#faqView" id="faqBtn" data-icon="custom">Lo sai che?</a></li>
|
||||
<li><a href="#indexView" id="indexBtn" data-icon="custom">Indice</a></li>
|
||||
<li><a href="#searchView" id="searchBtn" data-icon="custom">Cerca</a></li>
|
||||
<li><a href="#moreView" id="moreBtn" data-icon="custom">Altro</a></li>
|
||||
<!--<li><a href="#aboutView" id="infoBtn" data-icon="custom">About</a></li>
|
||||
<li><a href="#toolsView" id="toolsBtn" data-icon="custom">Tools</a></li>-->
|
||||
</ul>
|
||||
</div>
|
||||
Reference in New Issue
Block a user