Paginator icon indicating copy to clipboard operation
Paginator copied to clipboard

Unlink Current Page

Open tmblog opened this issue 11 years ago • 1 comments

I am using this with PDO like this

$pagePattern = "/(:num)"; $paginator = (new Voodoo\Paginator($pagePattern)) ->setItems($totalItems, $totalPerPage);

followed by

<?= $paginator; ?>

All the links are always hyperlinked, how can I make the current one not linked?

tmblog avatar Mar 14 '15 01:03 tmblog

This isn't currently possible. You'd have to write some JS to do this:

$(".pagination li.active a"). removeAttr("href", "").addClass("disable-cursor")

Then set cursor: default for the .disable-cursor class.

This would be a nice addition though.

deanc avatar Jul 03 '15 17:07 deanc