mirror of https://github.com/ColorlibHQ/AdminLTE
Update CardRefresh docs
parent
67a4832718
commit
eb19463370
|
@ -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.
|
| 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.
|
| loadInContent | Boolean | TRUE | Whether to automatically render the content.
|
||||||
| loadOnInit | Boolean | TRUE | Init plugin on page load.
|
| 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')
|
| responseType | String | '' | Response type (example: 'json' or 'html')
|
||||||
| overlayTemplate | String | TRUE | The HTML template for the ajax spinner
|
| overlayTemplate | String | TRUE | The HTML template for the ajax spinner
|
||||||
|
| errorTemplate | String | `'<span class="text-danger"></span>'` | The HTML template for an ajax error message
|
||||||
| onLoadStart | Function | Anonymous Function | Called before the ajax request is made
|
| 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.
|
| 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}
|
{: .table .table-bordered .bg-light}
|
||||||
|
|
||||||
##### Events
|
##### Events
|
||||||
|
|
Loading…
Reference in New Issue