ShowTable of Contents Using YouAtNotes Framework Use YNUI.createTextField(type, hintText, defaultValue, width, isPassword)
with
type: UI type of the field. The following types are currently supported: - "settings": rounded border, slight padding, similar to iOS setting fields
hintText: a hint text for the field
defaultValue: the default value of the field (optional)
width: a width for the field (optional)
isPassword: set to true to use a password mask
TextField Make a password field
Standard:
Ti.UI.createTextField({
editable : true,
enabled : true,
passwordMask : (isPassword ? true : false),
autocapitalization : Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,
value : 'defaultvalue',
hintText : 'Password'
});
When using YouAtNotes Framework:
YNUI.createTextField("settings", "Password", 'defaultvalue', null, true);
|