MCPcopy
hub / github.com/callumalpass/tasknotes / configureThemeColorInput

Function configureThemeColorInput

src/settings/components/CardComponent.ts:644–653  ·  view source on GitHub ↗
(input: HTMLInputElement)

Source from the content-addressed store, hash-verified

642}
643
644export function configureThemeColorInput(input: HTMLInputElement): void {
645 const themeInput = input as ThemeColorTextInput;
646 input.type = "text";
647 input.addClass(THEME_COLOR_TEXT_INPUT_CLASS);
648 input.placeholder = THEME_COLOR_INPUT_PLACEHOLDER;
649 input.setAttribute("list", THEME_COLOR_DATALIST_ID);
650 input.title = THEME_COLOR_INPUT_PLACEHOLDER;
651 ensureThemeColorDatalist();
652 configureNativeThemeColorPicker(themeInput);
653}
654
655export function createThemeColorInput(value?: string): HTMLInputElement {
656 const input = createCardInput("text", THEME_COLOR_INPUT_PLACEHOLDER, colorValueToInputValue(value));

Callers 5

onOpenMethod · 0.90
onOpenMethod · 0.90
renderFeaturesTabFunction · 0.90
createThemeColorInputFunction · 0.85

Calls 3

ensureThemeColorDatalistFunction · 0.85
addClassMethod · 0.65

Tested by

no test coverage detected