Home > @findkit/ui > FindkitUI > openFrom

FindkitUI.openFrom() method

Open the modal from the given elements. If a string is given it is used as a query selector to find the elements after the DOMContentLoaded event.

Element is not added to the focus trap automatically. If the element is visible on the page when the modal is open .focus() should be manually called on the element.

The FindkitUI implementation is preloaded on mouseover.

https://docs.findkit.com/ui/api/#openFrom

Signature:

openFrom(selector: ElementSelector<HTMLElement>): () => void;

Parameters

Parameter Type Description
selector ElementSelector<HTMLElement>

Returns:

() => void

unbind function