Skip to main content

ApiTextWidget

ApiTextWidget is a subclass of ApiBaseWidget.

Methods

MethodReturnsDescription
DeletebooleanRemoves widget from parent field.
GetBackgroundColorApiColorGets widget background color.
GetBorderColorApiColorGets widget border color.
GetBorderStyleWidgetBorderStyleGets widget border style.
GetBorderWidthWidgetBorderWidthGets widget border width.
GetClassType"textWidget"Returns a type of the ApiTextWidget class.
GetPlaceholderstringGets text field placeholder.
GetPositionPointGets widget position.
GetRectRectSets field rect.
GetRegularExpbooleanGets text widget regular validate expression.
GetTextColorApiColorGets widget text color.
GetTextSizeptGets widget text size. 💡 Text size === 0 means autofit
IsAutoFitbooleanChecks if text is autofit.
SetAutoFitbooleanSets text autofit.
SetBackgroundColorbooleanSets widget background color.
SetBorderColorbooleanSets widget border color.
SetBorderStylebooleanSets widget border style.
SetBorderWidthbooleanSets widget border width.
SetPlaceholderbooleanSets text field placeholder.
SetPositionbooleanSets widget position.
SetRectbooleanSets field rect.
SetRegularExpbooleanSets text widget regular validate expression.
SetTextColorbooleanSets widget text color.
SetTextSizebooleanSets widget text size. 💡 Text size === 0 means autofit