Class CheckBoxModel<TChecked>
Interface for a class CheckBox.
Inheritance
Namespace: Syncfusion.Blazor.Buttons
Assembly: Syncfusion.Blazor.dll
Syntax
public class CheckBoxModel<TChecked> : Object
Type Parameters
Name |
---|
TChecked |
Constructors
CheckBoxModel()
Declaration
public CheckBoxModel()
Properties
Checked
Specifies a value that indicates whether the CheckBox is checked
or not.
When set to true
, the CheckBox will be in checked
state.
Declaration
public TChecked Checked { get; set; }
Property Value
Type |
---|
TChecked |
CssClass
Defines class/multiple classes separated by a space in the CheckBox element. You can add custom styles to the CheckBox by using this property.
Declaration
public string CssClass { get; set; }
Property Value
Type |
---|
System.String |
Disabled
Specifies a value that indicates whether the CheckBox is disabled
or not.
When set to true
, the CheckBox will be in disabled
state.
Declaration
public bool Disabled { get; set; }
Property Value
Type |
---|
System.Boolean |
EnablePersistence
Enable or disable persisting component's state between page reloads.
Declaration
public bool EnablePersistence { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableRtl
Enable or disable rendering component in right to left direction.
Declaration
public bool EnableRtl { get; set; }
Property Value
Type |
---|
System.Boolean |
HtmlAttributes
You can add the additional html attributes such as disabled, value etc., to the element. If you configured both property and equivalent html attribute then the component considers the property value.
Declaration
public object HtmlAttributes { get; set; }
Property Value
Type |
---|
System.Object |
Indeterminate
Specifies a value that indicates whether the CheckBox is in indeterminate
state or not.
When set to true
, the CheckBox will be in indeterminate
state.
Declaration
public bool Indeterminate { get; set; }
Property Value
Type |
---|
System.Boolean |
Label
Defines the caption for the CheckBox, that describes the purpose of the CheckBox.
Declaration
public string Label { get; set; }
Property Value
Type |
---|
System.String |
LabelPosition
Positions label before
/after
the CheckBox.
The possible values are:
Before - The label is positioned to left of the CheckBox.
After - The label is positioned to right of the CheckBox.
Declaration
public LabelPosition LabelPosition { get; set; }
Property Value
Type |
---|
LabelPosition |
Name
Defines name
attribute for the CheckBox.
It is used to reference form data (CheckBox value) after a form is submitted.
Declaration
public string Name { get; set; }
Property Value
Type |
---|
System.String |
Value
Defines value
attribute for the CheckBox.
It is a form data passed to the server when submitting the form.
Declaration
public string Value { get; set; }
Property Value
Type |
---|
System.String |