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

ColorProperties

Expression Extends:

class ColorProperties extends BaseComponent(HTMLElement)

Mixin Extends:

HTMLElement, BaseComponent

A ColorPicker Color properties component

See:

Example:

Markup
<coral-colorpicker-properties></coral-colorpicker-properties>
JS constructor
new Coral.ColorPicker.ColorProperties();

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

The ColorProperties color string.

public

Whether this field is disabled or not.

public

The ColorProperties formats.

Method Summary

Public Methods
public

render()

Public Constructors

public constructor() source

Public Members

public color: String source

The ColorProperties color string.

  • hsla(0, 100%, 50%, 1) by default.
  • reflected

public disabled: Boolean source

Whether this field is disabled or not.

  • false by default.
  • reflected

public formats: Array source

The ColorProperties formats. comma separated formats should be in supported formats. First format will be used as default format. Values selected in any other format will be converted to default format.

  • ColorFormats.HSL by default.
  • reflected

Public Methods

public render() source