Module: uiutil

Methods

(static) buildKeyboardToolbar() → {Ti.UI.iOS.Toolbar}

Build a Toolbar
Source:
Returns:
Type
Ti.UI.iOS.Toolbar

(static) populateListViewFromCollection(C, opt, $uiopt) → {Array}

Parse an array or a Backbone.Collection and populate a ListView with this values.
Parameters:
Name Type Attributes Description
C Object Array or Backbone.Collection
opt Object Options
Properties
Name Type Description
datasetCb function You must provide a callback to fill the ListItem, like this: ``` return { properties: { height: 52, itemId: el.id, searchableText: el.get('city') }, title: { text: el.get('title') }, address: { text: el.get('address')+', '+el.get('city') } } ```
groupBy Object See `_.groupBy`
headerViewCb function A callback to generate the headerView for the ListView.
sectionIndex Boolean If `true`, provide the **alphabet on the right** functionality.
$ui Ti.UI.ListView <optional>
The ListView to populate.
Source:
Returns:
Type
Array

(static) setBackgroundCoverForView(url)

Set the background image with cover method
Parameters:
Name Type Description
url String
Source: