Skip to content

obsidian/popovers/field-popover

Utility for editing a handful of named text fields in a popover anchored at a point.

This is to showPopover what modals/prompt.ts is to modals/modal.ts: the common case spelled declaratively, so a caller that only needs a few text fields never writes any DOM wiring. Anything richer — a dropdown, a toggle, rendered markdown — goes through showPopover directly.

InterfaceDescription
EditFieldsInPopoverParamsParameters for editFieldsInPopover.
PopoverFieldA single text field of a editFieldsInPopover popover.
FunctionDescription
editFieldsInPopoverDisplays a popover with a text field per entry in fields and resolves with their values keyed by PopoverField.key, or null if it was dismissed without confirming.