Skip to content

Latest commit

 

History

History
22 lines (22 loc) · 576 Bytes

HOW-TO.md

File metadata and controls

22 lines (22 loc) · 576 Bytes
nav-title title description
WrapLayout How-To
How-To
Examples for using WrapLayout

WrapLayout

Using a WrapLayout requires the WrapLayout module.

var wrapLayoutModule = require("ui/layouts/wrap-layout");

Other frequently used modules when working with a WrapLayout include:

var enums = require("ui/enums");

Creating a WrapLayout

var wrapLayout = new wrapLayoutModule.WrapLayout();

Setting the orientation of a wrap-layout.

wrapLayout.orientation = enums.Orientation.vertical;