Skip to content

bio-tooltips


Functions

copyTextToClipboard()

copyTextToClipboard(value, status?): Promise<boolean>

Defined in: ui/summaryExpand.ts:25

Copies the full text of the summary paragraph that owns the given copy button. Truncation is CSS-only, so textContent always holds the complete value. On success the copy icon briefly swaps to a checkmark for visible confirmation.

Parameters

value

string

status?

HTMLElement

Returns

Promise<boolean>


enableSummaryExpand()

enableSummaryExpand(): () => void

Defined in: ui/summaryExpand.ts:112

Enables click/keyboard expand/collapse for summary sections in Bio Tooltips. It listens for events on the document and targets the specific 'Show more' button.

Returns

() => void