OWL
inputs
Color Picker Solid Tab
Odoo 19 OWL component — Color Picker Solid Tab (core)
Live preview
Interactive
Source excerpt
web/static/src/core/color_picker/tabs/color_picker_solid_tab.js
import { Component } from "@odoo/owl";
import { _t } from "@web/core/l10n/translation";
import { registry } from "@web/core/registry";
export class ColorPickerSolidTab extends Component {
static template = "web.ColorPickerSolidTab";
static props = {
colorPickerNavigation: Function,
onColorClick: Function,
onColorPointerOver: Function,
onColorPointerOut: Function,
onFocusin: Function,
onFocusout: Function,
currentCustomColor: { type: String, optional: true },
defaultColorSet: { type: String | Boolean, optional: true },
cssVarColorPrefix: { type: String, optional: true },
defaultColors: Array,
defaultThemeColorVars: Array,
"*": { optional: true },
};
}
registry.category("color_picker_tabs").add("web.solid", {
id: "solid",
name: _t("Solid"),
component: ColorPickerSolidTab,
});
Registry / API
- Registry name
ColorPickerSolidTab- Category
—- Module
web- Slug
color-picker-solid-tab- Nav group
inputs