Interface: UseLinkPopoverResult
Returned by useLinkPopover().
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
state | readonly | Readonly<ShallowRef<LinkPopoverState>> | The controller state as a shallow ref; updated on the client while the scope is alive. |
Methods
close()
ts
close(options?): void;Close without applying. Focuses the editor unless focusEditor is false.
Parameters
| Parameter | Type |
|---|---|
options? | { focusEditor?: boolean; } |
options.focusEditor? | boolean |
Returns
void
getErrorProps()
ts
getErrorProps(): VueProps;Props for the error message: role="alert", hidden while there is no error.
Returns
getFormProps()
ts
getFormProps(): VueProps;Props for the form: role="group", aria-label. Submit applies the address.
Returns
getInputProps()
ts
getInputProps(): VueProps;Props for the address input: aria-label, value, aria-invalid on error. Escape closes.
Returns
getRemoveProps()
ts
getRemoveProps(): VueProps;Props for the Remove button; hidden unless the selection is in a link.
Returns
getTriggerProps()
ts
getTriggerProps(): VueProps;Props for the toolbar button: id, aria-label, title with the shortcut, aria-keyshortcuts, aria-pressed (inside a link), aria-expanded, aria-controls. Click toggles the form.
Returns
openPopover()
ts
openPopover(): void;Open the form, filled with the current link's address or https://, and focus the field.
Returns
void