(input: HTMLInputElement)
| 642 | } |
| 643 | |
| 644 | export 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 | |
| 655 | export function createThemeColorInput(value?: string): HTMLInputElement { |
| 656 | const input = createCardInput("text", THEME_COLOR_INPUT_PLACEHOLDER, colorValueToInputValue(value)); |
no test coverage detected