Load partial content using AJAX
- Source:
Methods
(static) init(idopt) → {array}
Initialize the component
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
id | external:jQuery | string | <optional> | Selector or jQuery element. Default to all link elements with the data-pjax attribute |
- Source:
Returns:
Returns array of all targeted elements
- Type
- array
(static) load(id, optionsopt) → {external:jQuery}
Load data from a url and append or prepend to a element.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | external:jQuery | string | Selector or jQuery element | |||||||||||||||||||||||||||||||||||||||||
options | object | <optional> | Options can be passed to load or read from the data-options attribute on the element Properties
|
- Source:
Returns:
jQuery element
- Type
- external:jQuery