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

Function createModalContent

src/modals/TaskModal.ts:475–502  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

473 protected splitRightColumn: HTMLElement = undefined as unknown as HTMLElement;
474
475 protected createModalContent(): void {
476 const { contentEl } = this;
477 contentEl.empty();
478
479 // Create main container
480 const container = contentEl.createDiv("minimalist-modal-container");
481
482 // Create split content wrapper at the top level for wide screen layout
483 this.splitContentWrapper = container.createDiv("modal-split-content");
484 this.splitLeftColumn = this.splitContentWrapper.createDiv("modal-split-left");
485
486 // Create primary input area (title or NLP) - subclasses can override
487 this.createPrimaryInput(this.splitLeftColumn);
488
489 // Create action bar with icons - goes in left column
490 this.createActionBar(this.splitLeftColumn);
491
492 this.splitRightColumn = this.splitLeftColumn.createDiv("modal-split-right");
493
494 // Create collapsible details section (fields in left, details editor in right)
495 this.createDetailsSection(container);
496
497 // Hook for subclasses to add additional sections to left column
498 this.createAdditionalSections(this.splitLeftColumn);
499
500 // Create save/cancel buttons - outside the split, at bottom
501 this.createActionButtons(container);
502 }
503
504 /**
505 * Creates the primary input area. Override in subclasses for different behavior.

Callers

nothing calls this directly

Calls 4

createActionBarMethod · 0.80
createActionButtonsMethod · 0.80
createPrimaryInputMethod · 0.45

Tested by

no test coverage detected