Markdown tweaks
This commit is contained in:
@@ -6,7 +6,8 @@ title: Card Refresh Plugin
|
||||
The card refresh plugin provides the functionality for loading ajax content into the card.
|
||||
|
||||
##### Usage
|
||||
This plugin can be activated as a jQuery plugin or using the data api.
|
||||
|
||||
This plugin can be activated as a jQuery plugin or using the data API.
|
||||
|
||||
###### Data API
|
||||
{: .text-bold }
|
||||
@@ -14,9 +15,9 @@ This plugin can be activated as a jQuery plugin or using the data api.
|
||||
Activate the plugin by adding a button with `data-card-widget="card-refresh"` to the card and provide the required `data-source="/URL-TO-CONTENT"` option. By doing that, the plugin will automatically create a GET request to the provided URL and render the returned response the `.card-body` section of the card. If you need to process the returned response before rendering, you should use the jQuery API, which provides hooks to deal with the response.
|
||||
|
||||
|
||||
|
||||
###### jQuery
|
||||
{: .text-bold }
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user