Skip to main content

ApiCheckboxWidget

Class representing a checkbox field widget.

ApiCheckboxWidget is a subclass of ApiBaseWidget.

Methods​

The following table lists the available methods.

MethodReturnsDescription
DeletebooleanRemoves widget from parent field.
GetActionsJSONJSONGets all field actions in json format.
GetBackgroundColorApiColorGets widget background color.
GetBorderColorApiColorGets widget border color.
GetBorderStyleWidgetBorderStyleGets widget border style.
GetBorderWidthWidgetBorderWidthGets widget border width.
GetCheckStyleCheckStyleGets widget checkbox style.
GetClassType"checkboxWidget"Returns a type of the ApiCheckboxWidget class.
GetExportValuestringGets widget export value.
GetInternalIdstringReturns an internal ID of the current field widget.
GetPositionPointGets widget position.
GetRectRectSets field rect.
GetTextColorApiColorGets widget text color.
GetTextSizehpsGets widget text size.
IsAutoFitbooleanChecks if text is autofit.
IsCheckedbooleanChecks if checkbox widget is checked.
IsCheckedByDefaultbooleanChecks if widget is checked by default.
SetAutoFitbooleanSets text autofit.
SetBackgroundColorbooleanSets widget background color.
SetBorderColorbooleanSets widget border color.
SetBorderStylebooleanSets widget border style.
SetBorderWidthbooleanSets widget border width.
SetCheckStylebooleanSets widget checkbox style.
SetCheckedbooleanSets checkbox widget checked.
SetCheckedByDefaultbooleanSets widget checked by default.
SetExportValuebooleanSets widget export value.
SetPositionbooleanSets widget position.
SetRectbooleanSets field rect.
SetTextColorbooleanSets widget text color.
SetTextSizebooleanSets widget text size.