MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / createCardInput

Function createCardInput

src/settings/components/CardComponent.ts:546–564  ·  view source on GitHub ↗
(
	type: "text" | "number" | "color" | "checkbox" | "date" | "time" = "text",
	placeholder?: string,
	value?: string
)

Source from the content-addressed store, hash-verified

544 * Creates a simple input element with card styling
545 */
546export function createCardInput(
547 type: "text" | "number" | "color" | "checkbox" | "date" | "time" = "text",
548 placeholder?: string,
549 value?: string
550): HTMLInputElement {
551 const input = activeDocument.createElement("input");
552 input.type = type;
553 input.addClass("tasknotes-settings__card-input");
554
555 if (placeholder) {
556 input.placeholder = placeholder;
557 }
558
559 if (value) {
560 input.value = value;
561 }
562
563 return input;
564}
565
566const THEME_COLOR_DATALIST_ID = "tasknotes-theme-color-options";
567const THEME_COLOR_NATIVE_PICKER_CLASS = "tasknotes-theme-color-picker";

Callers 15

createDefaultTimeInputFunction · 0.90
renderGoogleCalendarCardFunction · 0.90
renderRemindersListFunction · 0.90
renderPriorityListFunction · 0.90
renderCardFunction · 0.90

Calls 1

addClassMethod · 0.65

Tested by

no test coverage detected