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

SelectListItem

Expression Extends:

class SelectListItem extends BaseComponent(HTMLElement)

Mixin Extends:

HTMLElement, BaseComponent

A SelectList item component

See:

Example:

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

Member Summary

Public Members
public

The content element for the item.

public

Whether this item is disabled.

public

The icon to display.

public

Whether the item is selected.

public

Value of the item.

Public Members

public content: SelectListItemContent source

The content element for the item.

  • content-zone

public disabled: Boolean source

Whether this item is disabled.

  • false by default.
  • reflected

public icon: String source

The icon to display. See Icon.

  • "" by default.

public selected: Boolean source

Whether the item is selected.

  • false by default.
  • reflected

public value: String source

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

  • "" by default.
  • reflected