From c30c35fdaf708617a2f48b4586de4a5a6a662395 Mon Sep 17 00:00:00 2001 From: Jack Bailey Date: Mon, 17 Oct 2022 17:42:34 +0100 Subject: [PATCH 1/2] Provide clarification on how to use Global options and update link --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0644420..882ea6b 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,15 @@ This plugin will generate a container with ".ps" class name, you need to customi Install method takes additional parameters: +```js +app.use(PerfectScrollbar, { + watchOptions: true, + options: { + suppressScrollX: true + } +}) +``` + #### `name {String}` Name of your global component. @@ -77,7 +86,7 @@ Set true if you want to update perfect-scrollbar on options change **Default**: `false` -#### `options {Object}`: [Options](https://github.com/utatti/perfect-scrollbar#options) +#### `options {Object}`: [Options](https://perfectscrollbar.com/#options) perfect-scrollbar options. **Default**: `{}` From bfa2c32b3ba29a49b193633896fbb2b01c0ae19e Mon Sep 17 00:00:00 2001 From: Jack Bailey Date: Mon, 17 Oct 2022 17:52:08 +0100 Subject: [PATCH 2/2] Update broken link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 882ea6b..d8d9974 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ Set true if you want to update perfect-scrollbar on options change **Default**: `false` -#### `options {Object}`: [Options](https://perfectscrollbar.com/#options) +#### `options {Object}`: [Options](https://perfectscrollbar.com/#section-options) perfect-scrollbar options. **Default**: `{}`