TLDeepLinkOptions

See source code
Table of contents
interface TLDeepLinkOptions {}

Properties

debounceMs

optional

The debounce time in ms for updating the url.

debounceMs?: number;

param

optional

The name of the url search param to use for the deep link.

Defaults to 'd'

param?: string;

Methods

getTarget

optional

Should return the current deep link target. Defaults to returning the current page and viewport position.

Parameters

NameDescription

editor

Editor;

Returns


getUrl

optional

Should return the current url to augment with a deep link query parameter. If you supply this function, you must also supply an onChange function.

Parameters

NameDescription

editor

Editor;

Returns

string | URL;

onChange

optional

This is fired when the URL is updated.

If not supplied, the default behavior is to update window.location.

Parameters

NameDescription

url

URL;

the updated URL

editor

Editor;

Returns

void;

Prev
TLCursorProps
Next
TLDragShapesInInfo