UIHeader
Summary
The UIHeader class is a navigational element at the top of the page (header)
Constructor
UIHeader
Syntax
UIHeader
()
Summary
Methods
show
Syntax
Summary
Shows element (not necesarily, since the element's parent might be hidden or out of view)
Returns:
UI:
Example:
m.app.ui.show();
title
Syntax
title
(
String
chainable
-
[title]
Summary
Title The text to display in the header If called with no arguments returns the current title
Parameters:
-
[title]
String optionalThe text for the title
Returns:
String:
Example:
m.app.view("index").ui.header.title("My title");
Properties
$el
Syntax
$el
Unknown
Summary
Zepto/jQuery object for DOM element
Example:
$appDOMElement = m.app.ui.$el;
$appDOMElement.on("tap", function() {
console.log("Header was tapped.");
});
el
Syntax
el
Unknown
Summary
DOM element
Example:
appDOMElement = m.app.ui.el;
appDOMElement.addEventListener("touchend", function() {
console.log("Header was touched.");
});