PopoverField<Key>
A single text field of a editFieldsInPopover popover.
Import:
import type { PopoverField } from '@mnaoumov/obsidian-lib/popovers/field-popover';Signature:
export interface PopoverField<Key extends string>Properties
| Property | Type | Description |
|---|---|---|
| defaultValue? | string | A value to pre-fill the field with. |
| key | Key | The key the field's value is returned under. |
| name | string | The label shown next to the field. |
| onCreate? | (textComponent: TextComponent) => void | Called with the field's text component once it is built and filled, before the popover is placed. Use it to attach a suggest to the input, such as a LinkPathInputSuggest; a pick in its list does not dismiss the popover. |
| placeholder? | string | A placeholder text for the field. |
Links to this page: