Options
All
  • Public
  • Public/Protected
  • All
Menu

Models an arbitrary, selectable item in the selector.

Type parameters

  • T

Hierarchy

  • SelectorItemViewModel

Index

Constructors

Properties

Methods

Constructors

constructor

  • Constructs a new instance.

    Parameters

    • Optional displayName: string

      The name to display for the item. How its displayed is up to the template.

    • Optional item: T

      The actual underlying item that this object wraps.

    • Optional isSelected: boolean

      The selected state of the object.

    Returns SelectorItemViewModel

Properties

displayName

displayName: Observable<string>

The name to display for the item. How its displayed is up to the item template used in the selector.

isSelected

isSelected: Observable<boolean>

Whether or not this item is selected.

item

item: T

The actual underlying item that this object wraps

Methods

getId

  • getId(): string
  • Returns string