Skip to content

Please update documentation #153

@mfarooqi

Description

@mfarooqi

Hi

I tried to disable "default click" action, but there wan't any way to disable so that I could run my own command on clicking.

In documentation "http://flaviusmatis.github.com/simplePagination.js/" I couldn't find any option but then I opened JS file..
https://github.com/flaviusmatis/simplePagination.js/blob/master/jquery.simplePagination.js

and there I saw "useAnchors" a boolean.. to disable/enable "default click action". I added in my code.

$('.pagination_container').pagination({
	pages: total_pages,
	cssStyle: 'dark-theme',
	displayedPages: 5,
	hrefTextPrefix: '',
	useAnchors:false,
	currentPage:pageno,
	edges: 2,
	onPageClick: function (page, event) {
		filterSearchQueryArray['paged'] = page;
		pushToHistory(true,  filterSearchQueryArray);
	}
});

... then I was able to run my custom function only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions