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.
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| EditFieldsInPopoverParams | Parameters for editFieldsInPopover. |
| PopoverField | A single text field of a editFieldsInPopover popover. |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| editFieldsInPopover | Displays 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. |