NavStack
Navigation stack: pushes and pops views to drill down a hierarchy of UI.
Includes a back button to allow navigation.
Constructor
navStack = NavStack(bounds)
Arguments
Name | Type | Description |
---|---|---|
bounds | Bounds | The NavStack’s bounds. |
Returns
Nothing
Methods
navstack:bottom ()
Returns the item at the bottom of the stack.
Does not remove the item from the stack.
Arguments
None
Returns
Type | Description |
---|---|
View | The item from the bottom of the stack |
navstack:top ()
Returns the item at the top of the stack.
Does not remove the item from the stack.
Arguments
None
Returns
Type | Description |
---|---|
View | The item from the top of the stack |
navstack:push (view)
Adds an item to the top of the stack
Arguments
Name | Type | Description |
---|---|---|
view | View | The view to push |
Returns
Nothing
navstack:pop ()
Returns the item from the top of the stack.
Removes the item from the stack.
Arguments
None
Returns
Type | Description |
---|---|
View | top The item at the top of the stack |