Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 598 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 598 Bytes

Alignmate

Alignment helper for visual objects.

Methods

  • top(obj[, opts])
  • topRight(obj[, opts])
  • topLeft(obj[, opts])
  • bottom(obj[, opts])
  • bottomRight(obj[, opts])
  • bottomLeft(obj[, opts])
  • center(obj[, opts])
  • centerRight(obj[, opts])
  • centerLeft(obj[, opts])
  • grid(obj, row, col, opts)

Options

  • padTop
  • padRight
  • padLeft
  • padBottom

Usage

Using button UI helper.

local Alignmate = require('alignmate')
local Button = require('button')

local submitBtn = Button.new({
    label = 'Submit'
})

Alignmate:center(submitBtn)