From eb19463370c2dbd8d5d04ff9a351f7ca0f2e45e5 Mon Sep 17 00:00:00 2001 From: equada <81673782+equada@users.noreply.github.com> Date: Fri, 29 Oct 2021 14:09:43 +0200 Subject: [PATCH] Update CardRefresh docs --- docs/javascript/card-refresh.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/javascript/card-refresh.md b/docs/javascript/card-refresh.md index 89e5722d4..b233f0261 100644 --- a/docs/javascript/card-refresh.md +++ b/docs/javascript/card-refresh.md @@ -37,10 +37,13 @@ The jQuery API provides more customizable options that allows the developer to p | content | String | `.card-body` | The CSS selector to the target where the content should be rendered. This selector should exist within the card. | loadInContent | Boolean | TRUE | Whether to automatically render the content. | loadOnInit | Boolean | TRUE | Init plugin on page load. +| loadErrorTemplate | Boolean | TRUE | Whether to append the `errorTemplate` to the card when an ajax error occurs. | responseType | String | '' | Response type (example: 'json' or 'html') | overlayTemplate | String | TRUE | The HTML template for the ajax spinner +| errorTemplate | String | `''` | The HTML template for an ajax error message | onLoadStart | Function | Anonymous Function | Called before the ajax request is made | onLoadDone | Function | Anonymous Function | Called after the ajax request is made. A `response` parameter is passed to the function that hold the server response. +| onLoadFail | Function | Anonymous Function | Called if the ajax request fails. `jqXHR`, `textStatus` and `errorThrown` parameters are passed to the function. {: .table .table-bordered .bg-light} ##### Events