Edit in GitHubLog an issue

Widgets

A collection of widgets.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Number count()

Displays the number of elements in the Widget.


Widget item( Mixed index )

Returns the Widget with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

Widget itemByID( Number id )

Returns the Widget with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

Widget itemByRange( Mixed from, Mixed to )

Returns the Widgets within the specified range.

Parameters

TypeNameDescription
Mixed
from
The Widget, index, or name at the beginning of the range. Can accept: Widget, Long Integer or String.
Mixed
to
The Widget, index, or name at the end of the range. Can accept: Widget, Long Integer or String.

Widget firstItem()

Returns the first Widget in the collection.


Widget lastItem()

Returns the last Widget in the collection.


Widget middleItem()

Returns the middle Widget in the collection.


Widget previousItem( Widget obj )

Returns the Widget with the index previous to the specified index.

Parameters

TypeNameDescription
Widget
obj
The index of the Widget that follows the desired Widget.

Widget nextItem( Widget obj )

Returns the Widget whose index follows the specified Widget in the collection.

Parameters

TypeNameDescription
Widget
obj
The Widget whose index comes before the desired Widget.

Widget anyItem()

Returns any Widget in the collection.


Widget everyItem()

Returns every Widget in the collection.


String toSource()

Generates a string which, if executed, will return the Widget.


Widget []( Number index )

Returns the Widget with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.