mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-20 13:20:35 +03:00
improve readme
This commit is contained in:
@@ -145,10 +145,6 @@ const Component = {
|
|||||||
initialize({ target: div.value });
|
initialize({ target: div.value });
|
||||||
});
|
});
|
||||||
|
|
||||||
onUnmounted(() => {
|
|
||||||
instance().destroy();
|
|
||||||
});
|
|
||||||
|
|
||||||
return () => <div ref={div} />
|
return () => <div ref={div} />
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -156,6 +152,8 @@ const Component = {
|
|||||||
|
|
||||||
The composable is for advanced usage and lets you control the whole initialization process. This is useful if you want to integrate it with other plugins.
|
The composable is for advanced usage and lets you control the whole initialization process. This is useful if you want to integrate it with other plugins.
|
||||||
|
|
||||||
|
The composable will destroy the instance automatically if the component unmounts.
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
Parameters are optional and similar to the `OverlayScrollbarsComponent`.
|
Parameters are optional and similar to the `OverlayScrollbarsComponent`.
|
||||||
|
|||||||
Reference in New Issue
Block a user