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 state and label.

Parameters:

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

Returns: CheckboxWidget

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

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

Creates a checkbox with the specified state and label.

Parameters:

Returns: CheckboxWidget

csharp
public static CheckboxWidget Checkbox<TParent>(this WidgetContext<TParent> ctx, CheckboxState state, string label) where TParent : Hex1bWidget

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

Creates a checkbox with the specified state.

Parameters:

Returns: CheckboxWidget

csharp
public static CheckboxWidget Checkbox<TParent>(this WidgetContext<TParent> ctx, CheckboxState state) where TParent : Hex1bWidget

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

Creates a checkbox with a label.

Parameters:

  • ctx (WidgetContext<<TParent>>):
  • label (String):

Returns: CheckboxWidget

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

Checkbox<TParent>(WidgetContext<TParent>)

Creates a checkbox with the default unchecked state.

Parameters:

  • ctx (WidgetContext<<TParent>>):

Returns: CheckboxWidget

csharp
public static CheckboxWidget Checkbox<TParent>(this WidgetContext<TParent> ctx) where TParent : Hex1bWidget

Released under the MIT License.