Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

app.layout

Leonardo Laureti edited this page May 13, 2019 · 1 revision

app.layout

Handles layout functions

<Object>

 

app.layout.renderElement

Renders a document element

<Function>

arguments:

<String> node
<String> content
<Object> attributes

returns:

<String>

position:

 

app.layout.renderSelect

Renders a SELECT element

<Function>

arguments:

<String> select_id
<Object> data
<Object> attributes

returns:

<String>

position:

 

app.layout.renderSelectOption

Renders the SELECT element OPTION

<Function>

arguments:

<String> value
<String> name
<Boolean> selected

returns:

<String>

position:

 

app.layout.renderSelectOptionGroup

Renders the SELECT element OPTGROUP

<Function>

arguments:

<String> label
<String> options

returns:

<String>

position:

 

app.layout.renderSelectOptions

Renders SELECT elements

<Function>

example:

[ { "optgroup_label": [ { "option_name": "option_value" }, ... ] } ]
[ { "option_name": "option_value" }, ... ]
[ "option_value", ... ]

arguments:

<String> select_id
<Object> data

returns:

<String>

position:

 

app.layout.dropdown

Helper for dropdown, returns requested prototype method

<Function> prototype   constructor

available prototype methods:

 - open (e)
 - close (e)
 - toggle (e)

arguments:

<String> event
<ElementNode> toggler
<ElementNode> dropdown
<Function> callback (e, dropdown)

returns:

<Function>

position:

 

app.layout.collapse

Helper for collapsible, returns requested prototype method

<Function> prototype   constructor

available prototype methods:

 - open (e)
 - close (e)
 - toggle (e)

arguments:

<String> event
<ElementNode> element
<ElementNode> collapsible
<Function> callback   (e, collapsible)

returns:

<Function>

position:

 

app.layout.draggable

Helper for draggable, returns requested prototype method

TODO: FIX droid
<Function> prototype   constructor

available prototype methods:

 - start (e, row, callback)
 - over (e, row, callback)
 - enter (e, row, callback)
 - leave (e, row, callback)
 - end (e, row, callback)
 - drop (e, row, callback)

arguments:

<String> event
<ElementNode> row
<String> row_selector - .draggable
<Function> callback (e, row)

returns:

<Function>

position:

 

app.layout.localize

Helper to localize layout

<Function>

globals:

<Object> appe__locale

arguments:

<ElementNode> element

returns.

position:

 

Clone this wiki locally