Skip to content

bramvbilsen/StackLayoutCoronaSDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StackLayoutCoronaSDK

Stacklayout for Corona SDK

Usage

First: Require the module

local stackLayoutLib = require("Stacklayout")

Second: Create a stacklayout

  • local stackLayout = stackLayoutLib.create(params)
  • params is a table and can include:
    • y (e.g. params = {y=0});

Third: use provided functions

Functions include:

  • stackLayout:add(obj, params)
    • obj is the object to add to the bottom of the stacklayout
    • params is a table and can include:
      • padding (e.g. params = {padding=20})
      • group (e.g. params = {group=true}) !! NOTE THAT THIS IS NECESSARY IF YOU ADD A GROUP. This does not include widgets like buttons !!
  • stackLayout:remove(obj)
  • stackLayout:refresh()
  • stackLayout:destroy()

-------This project is licensed under the terms of the MIT license-------

About

Stacklayout for Corona SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages