CheckboxModel
Interface representing the Checkbox class.
Properties
checked Boolean
Specifies a value indicating whether the checkbox is checked or not.
Default: false
cssClass String
Specifies CSS classes to customize the appearance of the checkbox.
Default: ""
disabled Boolean
Specifies whether the checkbox is enabled or disabled.
Default: false
enableHtmlSanitizer Boolean
Specifies whether to allow the rendering of untrusted HTML and JavaScript values withing the control. When true, any untrusted strings or scripts will be remote before rendering.
Default: true
enableRtl Boolean
Specifies whether to render the control in right to left direction.
Default: false
enableState Boolean
Specifies whether to persist the state of the control between page loads.
- checked
- indeterminate
Default: false
htmlAttributes {:}
Specifies additional HTML attributes, such as title, styles, class, id, and name, in a key-value pair format that will be appended to the HTML element. If both the property and equivalent HTML attributes are configured, then the control overrides the property value with the HTML attributes.
Default: {}
indeterminate Boolean
Specifies whether the state of the checkbox is indeterminate or not; neither true or false.
Default: false
label String
Specifies the caption of the checkbox.
Default: ""
labelPosition CheckboxLabelPosition
Specifies the position of the label.
Default: After
locale String
Specifies the culture and localization value for this control, overriding the globally defined value.
Default: en-US
name String
Specifies a value for the name attribute used when passing form data to the server.
Default: ""
value String
Specifies a value for the value attribute used when passing form data to the server.
Default: ""
Events
change EmitType<ChangeEventArgs>
Event callback that is raised when the checkbox state changes.
created EmitType<CreatedEventArgs>
Event callback that is raised when the control has been created.