ApiTextField
ApiTextField is a subclass of ApiBaseField.
Methods
| Method | Returns | Description |
|---|---|---|
| AddWidget | ApiWidget | Adds new widget - visual representation for field |
| ClearFormat | boolean | Clears format of field. |
| Delete | boolean | Removes field from document. |
| GetAllWidgets | ApiWidget[] | Gets array with widgets of the current field. |
| GetCharLimit | number | Gets text field chars limit. <note> Char limit 0 means field doesn't have char limit |
| GetClassType | "textField" | Returns a type of the ApiTextField class. |
| GetFullName | string | Gets field full name. |
| GetPartialName | string | Gets field partial name. |
| GetValue | string | Gets field value |
| IsComb | boolean | Checks if text field is comb. |
| IsMultiline | boolean | Checks if text field is multiline. |
| IsReadOnly | boolean | Checks if field is read only |
| IsRequired | boolean | Checks if field is required |
| IsScrollLongText | boolean | Checks if text field can scroll long text. |
| SetCharLimit | boolean | Sets text field chars limit. <note> Char limit 0 means field doesn't have char limit |
| SetComb | boolean | Sets text field comb prop. 💡 Should have char limit more then 0 |
| SetDateFormat | boolean | Sets date format for field. |
| SetFullName | boolean | Sets new field name if possible. |
| SetMask | boolean | Sets mask for entered text for field. |
| SetMultiline | boolean | Sets text field multiline prop. |
| SetNumberFormat | boolean | Sets number format for field. |
| SetPartialName | boolean | Sets new field partial name. |
| SetPercentageFormat | boolean | Sets percentage format for field. |
| SetReadOnly | boolean | Sets field read only |
| SetRegularExp | boolean | Sets regular expression validate string for field. |
| SetRequired | boolean | Sets field required |
| SetScrollLongText | boolean | Sets text field can scroll long text prop. |
| SetSpecialFormat | boolean | Sets special format for field. |
| SetTimeFormat | boolean | Sets time format for field. |
| SetValidateRange | boolean | Sets validate range for field. 💡 Can only be applied to fields with a percentage or number format. |
| SetValue | boolean | Sets field value |