Getting Started - TextField Widget

A quick introduction to the TextField widget.

Overview

Create a basic TextField widget

dUI = require 'dmc_ui'

widget = dUI.newTextField{
    hintText="Enter Email:"
}

-- or add afterwards

widget.hintText="Enter Email:"
widget.text="bob@yahoo.com"

Adding local style to a TextField widget

dUI = require 'dmc_ui'

text = dUI.newTextField{
    text="my text",

    style={
        align='left',
        font=native.systemFont,
        fontSize=16,
        marginX=10,
        marginY=5,
        textColor={0,0,0,1},
    }
}

References