Class LayoutItem
Constructors
(constructor)(items, layoutSettings)
Constructs a new instance of the LayoutItem class
Declaration
constructor(items?: Item[], layoutSettings?: DefaultLayoutSettings);
Parameters
Properties
layoutSettings
Declaration
get layoutSettings(): DefaultLayoutSettings;
set layoutSettings(value: DefaultLayoutSettings);
Property Value
sourceRectangle
Declaration
get sourceRectangle(): RectangleF;
set sourceRectangle(value: RectangleF);
Property Value
type
Declaration
Property Value
type
Declaration
Property Value
Methods
_copy(source, destination, generateNewIds, appropriateParentContainer)
Declaration
protected _copy(source: LayoutItem, destination: LayoutItem, generateNewIds: boolean, appropriateParentContainer: boolean): void;
Parameters
| Type |
Name |
Description |
| LayoutItem |
source |
|
| LayoutItem |
destination |
|
| boolean |
generateNewIds |
|
| boolean |
appropriateParentContainer |
|
Returns
_copyItemsOrder(source, destination)
Declaration
protected _copyItemsOrder(source: LayoutItem, destination: LayoutItem): void;
Parameters
Returns
addItem(item, targetIndex, orderIndex)
Declaration
addItem(item: Item, targetIndex?: number, orderIndex?: number): void;
Parameters
| Type |
Name |
Description |
| Item |
item |
|
| number |
targetIndex |
|
| number |
orderIndex |
|
Returns
addItems(items, targetIndex, orderIndex)
Declaration
addItems(items: Item[], targetIndex?: number, orderIndex?: number): void;
Parameters
| Type |
Name |
Description |
| Item[] |
items |
|
| number |
targetIndex |
|
| number |
orderIndex |
|
Returns
clone(generateNewIds, appropriateParentContainer)
Declaration
clone(generateNewIds?: boolean, appropriateParentContainer?: boolean): LayoutItem;
Parameters
| Type |
Name |
Description |
| boolean |
generateNewIds |
|
| boolean |
appropriateParentContainer |
|
Returns
equals(other)
Declaration
equals(other: LayoutItem): boolean;
Parameters
Returns
generateAutoLayoutSettings(rectangles, alignItems, orientation, margin, justifyContent)
Declaration
static generateAutoLayoutSettings(rectangles: RectangleF[], alignItems?: AutoLayoutAlignItems, orientation?: AutoLayoutOrientation, margin?: number, justifyContent?: AutoLayoutJustifyContent): AutoLayoutSettings;
Parameters
Returns
getItemOrderIndex(item)
Declaration
getItemOrderIndex(item: Item): number;
Parameters
| Type |
Name |
Description |
| Item |
item |
|
Returns
getItemsOrder()
Declaration
getItemsOrder(): string[];
Returns
| Type |
Description |
| string[] |
|
getSimplifiedObject(omitProperties)
Declaration
getSimplifiedObject(omitProperties?: string[] | string): Object;
Parameters
| Type |
Name |
Description |
| string[] | string |
omitProperties |
|
Returns
getSortedItems()
Declaration
getSortedItems(): Item[];
Returns
isChildVisible(item)
Declaration
isChildVisible(item: Item): boolean;
Parameters
| Type |
Name |
Description |
| Item |
item |
|
Returns
removeItems(items)
Declaration
removeItems(items: Item[]): void;
Parameters
| Type |
Name |
Description |
| Item[] |
items |
|
Returns
setItemsOrder(ids)
Declaration
setItemsOrder(ids: string[]): void;
Parameters
| Type |
Name |
Description |
| string[] |
ids |
|
Returns