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

TagList

Expression Extends:

class TagList extends BaseFormField(BaseComponent(HTMLElement))

A TagList component is a form field container to manipulate tags.

See:

Example:

Markup
<coral-taglist></coral-taglist>
JS constructor
new Coral.TagList();

Member Summary

Public Members
public

Whether this field is disabled or not.

public

invalid: *

null

public

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

public

Name used to submit the data in a form.

public

Whether this field is readOnly or not.

public

Whether this field is required or not.

public

This field's current value.

  • "" by default.

public

Changing the values will redefine the component's items.

Method Summary

Public Methods
public

reset()

Inherited from BaseFormField#reset.

Public Members

public disabled: Boolean source

Whether this field is disabled or not.

  • false by default.
  • reflected

public invalid: * source

null

public items: Collection source

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

  • read-only

public name: String source

Name used to submit the data in a form.

  • "" by default.
  • reflected

public readOnly: Boolean source

Whether this field is readOnly or not. Indicating that the user cannot modify the value of the control.

  • false by default.
  • reflected

public required: Boolean source

Whether this field is required or not.

  • false by default.
  • reflected

public value: String source

This field's current value.

  • "" by default.

public values: Array<String> source

Changing the values will redefine the component's items.

Emit:

change

Public Methods

public reset() source

Inherited from BaseFormField#reset.