Global

Methods

alert(props)

alert
msgmessage [ default: "Alert!"]
delaydelay ms
kindkind [ info / success / error ]
Parameters:
Name Type Description
props object props
Source:

Button(caption, callback, props)

returns a new Button_ instance
Parameters:
Name Type Description
caption string caption
callback function callback
props object props
Source:

CheckBoxInput(props)

returns a new CheckBoxInput_ instance
Parameters:
Name Type Description
props object props , see class constructor
Source:

Combo(props)

returns a new Combo_ instance
Parameters:
Name Type Description
props object props , see class constructor
Source:

div(props)

returns a new div_ instance
Parameters:
Name Type Description
props object props
Source:
Example
// creates a div with content "I'm a div."
div().html("I'm a div.")

getLocal(path, defaultValue)

get a value from localStorage
Parameters:
Name Type Description
path string path
defaultValue any default value ( returned if stored value is not available or non parsable )
Source:

input(props)

returns a new input_ instance
Parameters:
Name Type Description
props object props
Source:

option(props)

returns a new option_ instance
Parameters:
Name Type Description
props object props , see class constructor
Source:

OptionsTable(props)

returns a new OptionsTable_ instance
Parameters:
Name Type Description
props object props, see class constructor
Source:

select(props)

returns a new select_ instance
Parameters:
Name Type Description
props object props
Source:

storeLocal(path, value)

store a value in localStorage
Parameters:
Name Type Description
path string path
value any value ( should be JSON serializable )
Source:
Returns:
true on success, false otherwise

table(props)

returns a new table_ instance
Parameters:
Name Type Description
props object props
Source:

tbody(props)

returns a new tbody_ instance
Parameters:
Name Type Description
props object props
Source:

td(props)

returns a new td_ instance
Parameters:
Name Type Description
props object props
Source:

thead(props)

returns a new thead_ instance
Parameters:
Name Type Description
props object props
Source:

tr(props)

returns a new tr_ instance
Parameters:
Name Type Description
props object props
Source:

translateOption(obj)

translate option initializer
Parameters:
Name Type Description
obj * dicionary / array / string
Source: