TLDeepLinkOptions
See source codeTable 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
Name | Description |
---|---|
|
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
Name | Description |
---|---|
|
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
Name | Description |
---|---|
|
the updated URL |
|
Returns
void
Prev
TLCursorPropsNext
TldrawEditorBaseProps