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 state and label.
Parameters:
Returns: CheckboxWidget
csharp
public static CheckboxWidget Checkbox<TParent>(this WidgetContext<TParent> ctx, bool isChecked, string? label = null) where TParent : Hex1bWidgetCheckbox<TParent>(WidgetContext<TParent>, CheckboxState, string)
Creates a checkbox with the specified state and label.
Parameters:
ctx(WidgetContext<<TParent>>):state(CheckboxState):label(String):
Returns: CheckboxWidget
csharp
public static CheckboxWidget Checkbox<TParent>(this WidgetContext<TParent> ctx, CheckboxState state, string label) where TParent : Hex1bWidgetCheckbox<TParent>(WidgetContext<TParent>, CheckboxState)
Creates a checkbox with the specified state.
Parameters:
ctx(WidgetContext<<TParent>>):state(CheckboxState):
Returns: CheckboxWidget
csharp
public static CheckboxWidget Checkbox<TParent>(this WidgetContext<TParent> ctx, CheckboxState state) where TParent : Hex1bWidgetCheckbox<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 : Hex1bWidgetCheckbox<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