1.1.6 • Published 2 years ago

wp-ajax-feed v1.1.6

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Ajax Feed Javascript Package

Example Usage

let portfolioFeed = new AjaxFeed({
	'baseUrl': site_info.ajax_url,
	'action': 'portfolio_feed',
	'container': $('.portfolio-feed'),
	'filterForms': $('.portfolio-feed-filters'),
	'paginationContainer':$('.portfolio-feed-pagination'),
	'paginationDataAttribute': 'data-ajax-page',
	'submitOnFilterUpdate': false,
});

Example Server Response

let response = {
	'html': 'HTML Response that will populate the container',
	'pagination': 'HTML response that will populate the pagination container',
	'currentPage': 'the current page',
	'maxPages': 'the total amount of pages in the current query'
	'posts':'The raw post data that was returned by the query'
};

Settings

Methods

Events

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago