API Docs for:
Show:

UIHeader

Extends UI
Defined in: js/uiheader.js:1
Module: UI

Summary

The UIHeader class is a navigational element at the top of the page (header)

Constructor

UIHeader

Defined in js/uiheader.js:1

Syntax

UIHeader

()

Summary

Item Index

Methods

Properties

Methods

hide

Inherited from UI: js/ui.js:72

Syntax

hide

() UI private

Summary

Hides element from view

Returns:

UI:

Example:

m.app.ui.hide();

show

Inherited from UI: js/ui.js:59

Syntax

show

() UI private

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

Defined in js/uiheader.js:118

Syntax

title

(
  • [title]
)
String chainable

Summary

Title The text to display in the header If called with no arguments returns the current title

Parameters:

  • [title] String optional

    The text for the title

Returns:

String:

Example:

m.app.view("index").ui.header.title("My title");

Properties

$el

Inherited from UI: js/ui.js:46

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

Inherited from UI: js/ui.js:33

Syntax

el

Unknown

Summary

DOM element

Example:

appDOMElement = m.app.ui.el;
appDOMElement.addEventListener("touchend", function() {
    console.log("Header was touched.");
});