Reference Source
import {Select} from '@adobe/coral-spectrum'
public class | source

SelectItem

Expression Extends:

class SelectItem extends BaseComponent(HTMLElement)

Mixin Extends:

HTMLElement, BaseComponent

A Select item component

See:

Example:

Markup
<coral-select-item></coral-select-item>
JS constructor
new Coral.Select.Item();

Member Summary

Public Members
public

content: *

null

public

Whether this item is disabled.

public

Whether the item is selected.

public
public

Value of the item.

Public Members

public content: * source

null

public disabled: Boolean source

Whether this item is disabled. When set to true, this will prevent every user interaction with the item. If disabled is set to true for a selected item it will be deselected.

  • false by default.
  • reflected

public selected: Boolean source

Whether the item is selected. Selected cannot be set to true if the item is disabled.

  • false by default.
  • reflected

public trackingElement: * source

Inherited from BaseComponent#trackingElement.

public value: String source

Value of the item. If not explicitly set, the value of Node.textContent is returned.

  • "" by default.
  • reflected