Skip to content

CheckboxExtensions

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for creating CheckboxWidget.

csharp
public static class CheckboxExtensions

Inheritance

ObjectCheckboxExtensions

Methods

Checkbox<TParent>(WidgetContext<TParent>, bool, string?)

Creates a checkbox with the specified checked value and label.

Parameters:

  • context (WidgetContext<<TParent>>):
  • isChecked (Boolean):
  • label (String):

Returns: CheckboxWidget

csharp
public static CheckboxWidget Checkbox<TParent>(this WidgetContext<TParent> context, bool isChecked, string? label = null) where TParent : Hex1bWidget

Checkbox<TParent>(WidgetContext<TParent>, CheckboxValue, string)

Creates a checkbox with the specified initial value and label.

Parameters:

Returns: CheckboxWidget

csharp
public static CheckboxWidget Checkbox<TParent>(this WidgetContext<TParent> context, CheckboxValue value, string label) where TParent : Hex1bWidget

Checkbox<TParent>(WidgetContext<TParent>, CheckboxValue)

Creates a checkbox with the specified initial value.

Parameters:

Returns: CheckboxWidget

csharp
public static CheckboxWidget Checkbox<TParent>(this WidgetContext<TParent> context, CheckboxValue value) where TParent : Hex1bWidget

Checkbox<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 : Hex1bWidget

Checkbox<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

Released under the MIT License.