Update docs

This commit is contained in:
knsv
2024-03-06 10:14:35 +00:00
parent f5bd82461e
commit f0f1bec9ce
2 changed files with 5 additions and 5 deletions

View File

@@ -14,6 +14,10 @@
`Optional` **bindFunctions**: (`element`: `Element`) => `void`
#### Type declaration
▸ (`element`): `void`
Bind function to be called after the svg has been inserted into the DOM.
This is necessary for adding event listeners to the elements in the svg.
@@ -23,10 +27,6 @@ div.innerHTML = svg;
bindFunctions?.(div); // To call bindFunctions only if it's present.
```
#### Type declaration
▸ (`element`): `void`
##### Parameters
| Name | Type |