API Docs for:
Show:

UIForm

Extends UI
Defined in: js/uiform.js:3
Module: UI

Summary

The UIForm is a form to input data

Constructor

UIForm

Defined in js/uiform.js:3

Syntax

UIForm

()

Summary

Item Index

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();

registerControl

Defined in js/uiform.js:56

Syntax

registerControl

(
  • Constructor
)

Summary

Parameters:

  • Constructor Object

    An object with a private _init method

Example:

UIForm.registerControl(UIFormText);  

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();

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.");
});