ColorPickerView.model
property · packages/mixins-ui/src/colorPicker.ts:548
readonly model: ModelMixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/colorPicker.ts:547
interface ColorPickerView<Message> {
readonly model: Model
readonly onMessage: (message: typeof Message.Type) => NoInfer<Message>
readonly label: string
readonly presets?: ReadonlyArray<ColorPickerPreset> | undefined
readonly alpha?: boolean | undefined
readonly eyedropper?: boolean | undefined
readonly words?: Partial<ColorPickerWords> | undefined
readonly disabled?: boolean | undefined
readonly style?: NamedStyle<typeof ColorPickerSlots> | undefined
readonly slider?: NamedStyle<typeof SliderSlots> | undefined
readonly mixins?: MixinList<Message> | undefined
}ColorPickerView.modelproperty · packages/mixins-ui/src/colorPicker.ts:548
readonly model: ModelColorPickerView.onMessageproperty · packages/mixins-ui/src/colorPicker.ts:550
readonly onMessage: (message: typeof Message.Type) => NoInfer<Message>Lifts the picker's own Messages into the application's.
ColorPickerView.labelproperty · packages/mixins-ui/src/colorPicker.ts:552
readonly label: stringWhat the color is for, shown and naming the group.
ColorPickerView.presetsproperty · packages/mixins-ui/src/colorPicker.ts:554
readonly presets?: ReadonlyArray<ColorPickerPreset> | undefinedColors one press away, drawn as a radio group of swatches; the one equal to the color is checked.
ColorPickerView.alphaproperty · packages/mixins-ui/src/colorPicker.ts:556
readonly alpha?: boolean | undefinedDefault true; without it the color is opaque and its slider is not drawn.
ColorPickerView.eyedropperproperty · packages/mixins-ui/src/colorPicker.ts:561
readonly eyedropper?: boolean | undefinedDraws the eyedropper button; default false, on a server and in a browser alike. The view
reads no environment, so the application decides from its Model (see canEyedrop).
ColorPickerView.wordsproperty · packages/mixins-ui/src/colorPicker.ts:562
readonly words?: Partial<ColorPickerWords> | undefinedColorPickerView.disabledproperty · packages/mixins-ui/src/colorPicker.ts:563
readonly disabled?: boolean | undefinedColorPickerView.styleproperty · packages/mixins-ui/src/colorPicker.ts:565
readonly style?: NamedStyle<typeof ColorPickerSlots> | undefinedA style of ColorPickerSlots, for the look.
ColorPickerView.sliderproperty · packages/mixins-ui/src/colorPicker.ts:567
readonly slider?: NamedStyle<typeof SliderSlots> | undefinedThe hue and alpha Sliders' style.
ColorPickerView.mixinsproperty · packages/mixins-ui/src/colorPicker.ts:569
readonly mixins?: MixinList<Message> | undefinedMixins beside the style.