bootstrap-paginator
bootstrap-paginator copied to clipboard
Set mouse hover to pointer, thnx.
var options = {
currentPage: 3,
totalPages: 10,
itemContainerClass: function (type, page, current) {
return (page === current) ? "active" : "pointer-cursor";
}
};
$('#example').bootstrapPaginator(options);
Taken directly from the documentation. Source: http://lyonlai.github.io/bootstrap-paginator/
@jacobmarshall This does work but the documentation fails to mention that you have to add the class to the CSS yourself. (Bootstrap doesn't have a .pointer-cursor class)
@brynzky You have to add the following to your pages CSS file
.pointer-cursor {
cursor: pointer;
}
EDIT: I know this is an old Issue, but I figured this needed to be stated since the documentation doesn't really make a mention of it.
Also Wouldn't it make more sense that by default the non active elements have the Pointer Cursor? That is the expected behavior after all.