Back

AddTextEdit

Hello World

Adds a TextEdit control to a given layout.

ted = MUI.AddTextEdit( parent, width, options, p1, p2, p3, p4, p5 ) → Object

See CreateTextEditFilled, CreateTextEditFilledA, CreateTextEditOutline, CreateTextEditOutlineA, CreateTEFilledIconLeft, CreateTEFilledIconRight, CreateTEOutlineIconLeft, CreateTEOutlineIconRight, CreateTESearchElegant, CreateTESearchUnique, CreateTextEditSearch and CreateTextEditUnique for full documentation on each type of MUI TextEdit. For p1, p2, p3, p4 and p5 parameters, these are the params after the options. You can refer to the corresponding Create* method to see what this parameters are. Example for CreateTextEditFilled 'p1' is 'hint', 'p2' is 'label' and 'p3' is 'color'. For CreateTextEditOutline 'p1' is 'hint', 'p2' is 'label', 'p3' is 'color' and 'p4' is 'backColor'.

Example - AddTextEdit

cfg.Light
cfg.MUI

function OnStart()
{
    lay = MUI.CreateLayout("Linear", "VCenter,FillXY")
        ted1 = MUI.AddTextEdit(lay, 0.8, "filled", "Enter Name", true)
        ted1 = MUI.AddTextEdit(lay, 0.8, "filled,active,password", "Enter password", true)
        ted1 = MUI.AddTextEdit(lay, 0.8, "outline,number", "Enter Number", true)
        ted1 = MUI.AddTextEdit(lay, 0.8, "outline,active", "Enter PIN", true)
        ted1 = MUI.AddTextEdit(lay, 0.8, "elegant", "Enter name")
        ted1 = MUI.AddTextEdit(lay, 0.8, "outline,icon,left", "person", "Enter name", true)
        ted1 = MUI.AddTextEdit(lay, 0.8, "outline,icon,right", "password", "Enter password", true)
    app.AddLayout(lay)
}
Copy All       Run      
Number
String: “outline” or “filled” or “unique” or “search” or “active” or “icon and for icon can be  left” or “right”
String: “See corresponding MUI TextEdit”
Object: MUI Layout or DS Layout control