Log in
Model

PaletteOnlyMode

Magento\Ui\Model\ColorPicker\PaletteOnlyMode

What it does

This class provides configuration for a color picker UI component in 'palette only' mode.

Developers use this when they want to restrict color selection to a predefined palette, hiding the manual color input field and other advanced options.

It's particularly useful for maintaining brand consistency by limiting color choices to approved colors.

Public Methods

  • getConfig()