nth-gadget ( n gadget -- child )
Factor handbook » UI framework » Building user interfaces » Gadget hierarchy and layouts » Layout basics

Prev:gadget-child ( gadget -- child )
Next:each-child ( ... gadget quot: ( ... child -- ... ) -- ... )


Vocabulary
ui.gadgets

Inputs
na non-negative integer
gadgeta gadget


Outputs
childa gadget


Word description
Outputs the nth child of the gadget.

Errors
Throws an error if n is negative or greater than or equal to the number of children.

Definition