plandalf.from()
Find the live handle associated with an element.
Implemented by the browser object; parameter and return types follow the interface declaration.
Workspace snapshot: the inspected SDK has local changes. Source links identify its base commit and may differ from this working copy. Verify the SDK build you deploy before relying on unreleased behavior.
Signature
plandalf.from(el: Element): FlowHandle<unknown> | PromoHandle | ReferralHandle | nullArguments
| Name | Type | Meaning |
|---|---|---|
el | Element | Element associated with a declarative SDK handle. |
Example
from.js
const button = document.querySelector('[data-plandalf-present]')
if (button) {
const handle = plandalf.from(button)
console.log(handle)
}Returns
FlowHandle<unknown> | PromoHandle | ReferralHandle | null
Behaviour
The browser object reads its element-handle registry directly. The PlandalfSDK interface declares this return type, while the current class source lacks its from() implementation.