From a6f47a8e8c9925f4721d4a40ee803eff3d5776dd Mon Sep 17 00:00:00 2001 From: eworld Date: Thu, 25 Nov 2021 05:54:59 +0800 Subject: [PATCH] Fix Card Refresh Plugin doc (#4013) --- docs/javascript/card-refresh.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/javascript/card-refresh.md b/docs/javascript/card-refresh.md index b233f0261..193adaeb1 100644 --- a/docs/javascript/card-refresh.md +++ b/docs/javascript/card-refresh.md @@ -21,7 +21,7 @@ Activate the plugin by adding a button with `data-card-widget="card-refresh"` to The jQuery API provides more customizable options that allows the developer to pre-process the request before rendering and post-process it after rendering. ```js -("#my-card").refreshBox(options) +('#my-card').CardRefresh(options) ``` ##### Options @@ -69,4 +69,4 @@ Example: `$('#my-card [data-card-widget="card-refresh"]').on('loaded.lte.cardref |load | Reloads the content and runs the `onLoadStart` and `onLoadDone` hooks {: .table .table-bordered .bg-light} -Example: `$('#my-card-widget').Widget('toggle')` +Example: `$('#my-card').CardRefresh('load')`