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

TreeItem

Expression Extends:

class TreeItem extends BaseComponent(HTMLElement)

Mixin Extends:

HTMLElement, BaseComponent

A Tree item component

See:

Example:

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

Static Member Summary

Static Public Members
public static

Returns TreeItem variants.

Member Summary

Public Members
public

The content of this tree item.

public

Whether this item is disabled.

public

Whether the item is expanded.

public

The Collection Interface that allows interacting with the items that the component contains.

public

The parent tree.

public

Whether the item is selected.

public

The item's variant. See TreeItemVariantEnum.

  • TreeItemVariant.DRILLDOWN by default.
  • reflected

Static Public Members

public static variant: TreeItemVariantEnum: * source

Returns TreeItem variants.

Public Members

public content: TreeItemContent source

The content of this tree item.

  • content-zone

public disabled: Boolean source

Whether this item is disabled.

  • false by default.
  • reflected

public expanded: Boolean source

Whether the item is expanded. Expanded cannot be set to true if the item is disabled.

  • false by default.
  • reflected

public items: Collection source

The Collection Interface that allows interacting with the items that the component contains.

  • read-only

public parent: HTMLElement source

The parent tree. Returns null if item is the root.

  • read-only

public selected: Boolean source

Whether the item is selected.

  • false by default.
  • reflected

public variant: String source

The item's variant. See TreeItemVariantEnum.

  • TreeItemVariant.DRILLDOWN by default.
  • reflected