CheckboxExtensions
Namespace: Hex1b
Assembly: Hex1b.dll
Extension methods for creating CheckboxWidget.
csharp
public static class CheckboxExtensionsInheritance
Object → CheckboxExtensions
Methods
Checkbox<TParent>(WidgetContext<TParent>, bool, string?)
Creates a checkbox with the specified checked value and label.
Parameters:
Returns: CheckboxWidget
csharp
public static CheckboxWidget Checkbox<TParent>(this WidgetContext<TParent> context, bool isChecked, string? label = null) where TParent : Hex1bWidgetCheckbox<TParent>(WidgetContext<TParent>, CheckboxValue, string)
Creates a checkbox with the specified initial value and label.
Parameters:
context(WidgetContext<<TParent>>):value(CheckboxValue):label(String):
Returns: CheckboxWidget
csharp
public static CheckboxWidget Checkbox<TParent>(this WidgetContext<TParent> context, CheckboxValue value, string label) where TParent : Hex1bWidgetCheckbox<TParent>(WidgetContext<TParent>, CheckboxValue)
Creates a checkbox with the specified initial value.
Parameters:
context(WidgetContext<<TParent>>):value(CheckboxValue):
Returns: CheckboxWidget
csharp
public static CheckboxWidget Checkbox<TParent>(this WidgetContext<TParent> context, CheckboxValue value) where TParent : Hex1bWidgetCheckbox<TParent>(WidgetContext<TParent>, string)
Creates a checkbox with a label.
Parameters:
context(WidgetContext<<TParent>>):label(String):
Returns: CheckboxWidget
csharp
public static CheckboxWidget Checkbox<TParent>(this WidgetContext<TParent> context, string label) where TParent : Hex1bWidgetCheckbox<TParent>(WidgetContext<TParent>)
Creates a checkbox with the default unchecked value.
Parameters:
context(WidgetContext<<TParent>>):
Returns: CheckboxWidget
csharp
public static CheckboxWidget Checkbox<TParent>(this WidgetContext<TParent> context) where TParent : Hex1bWidget