EditText

An input field for Setting Dialog

Constructor
EditText(text: string = null, inputMethod: number = 0, hint: string = null, helper: string = null)

Construct an EditText

Parameters
text The default text of the input field
inputMethod 0 for text, 1 for number. See Constants
hint The label float above the input field when focus
helper The helper text below the input field
Constants

TXT: number = 0

NUM: number = 1

Methods
id
EditText id(id: string)

Set an id to identify a view

Parameters
id id to identify a view
Return
EditText This EditText instance
text
EditText text(text: string)

Set the default text of the input field

Parameters
text The default text of the input field
Return
EditText This EditText instance
method
EditText method(inputMethod: number)

Set the input method for the input field

Parameters
inputMethod 0 for text, 1 for number. See Constants
Return
EditText This EditText instance
hint
EditText hint(hint: string)

Set the hint of the input field

Parameters
hint The label float above the input field when focus
Return
EditText This EditText instance
helper
EditText helper(helper: string)

Set the helper text of the input field

Parameters
helper The helper text below the input field
Return
EditText This EditText instance

© 2021 - Macrorify by KoK-CODE