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.
GetActionsApiActionCollectionGets actions collection.
GetActionsJSONJSONGets all field actions in json format.
GetBackgroundColorApiColor | null | undefinedGets widget background color.
GetBorderColorApiColor | null | undefinedGets 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.
GetParentApiFieldGets parent field.
GetPositionPointGets widget position.
GetRectRectSets field rect.
GetTextAlignWidgetTextAlign | undefinedGets widget text alignment.
GetTextColorApiColor | null | undefinedGets 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.
SetTextAlignbooleanSets widget text alignment.
SetTextColorbooleanSets widget text color.
SetTextSizebooleanSets widget text size.