Skip to content

PickerExtensions

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for creating Picker widgets.

csharp
public static class PickerExtensions

Inheritance

ObjectPickerExtensions

Methods

Picker<TParent>(WidgetContext<TParent>, IReadOnlyList<string>, int)

Creates a picker widget with the specified items and initial selection.

Parameters:

  • ctx (WidgetContext<<TParent>>): The widget context.
  • items (IReadOnlyList<String>): The list of items to choose from.
  • initialSelectedIndex (Int32): The initial selected index.

Returns: PickerWidget

A new PickerWidget.

csharp
public static PickerWidget Picker<TParent>(this WidgetContext<TParent> ctx, IReadOnlyList<string> items, int initialSelectedIndex) where TParent : Hex1bWidget

Picker<TParent>(WidgetContext<TParent>, IReadOnlyList<string>)

Creates a picker widget with the specified items.

Parameters:

  • ctx (WidgetContext<<TParent>>): The widget context.
  • items (IReadOnlyList<String>): The list of items to choose from.

Returns: PickerWidget

A new PickerWidget.

csharp
public static PickerWidget Picker<TParent>(this WidgetContext<TParent> ctx, IReadOnlyList<string> items) where TParent : Hex1bWidget

Picker<TParent>(WidgetContext<TParent>, params string[])

Creates a picker widget with the specified items.

Parameters:

  • ctx (WidgetContext<<TParent>>): The widget context.
  • items (String[]): The items to choose from.

Returns: PickerWidget

A new PickerWidget.

csharp
public static PickerWidget Picker<TParent>(this WidgetContext<TParent> ctx, params string[] items) where TParent : Hex1bWidget

Released under the MIT License.