Welcome Guest, Not a member yet? Register   Sign In
Pagination Library Suggestion
#1

[eluser]Unknown[/eluser]
i have a suggestion for the pagination class, and i will explain it by an example

if i have to, stylize the previous and next anchors, how i will do? if i can only stylize all the anchors, my suggestion is, add the following variables, in order to do this.

Code:
var $next_class = '';
var $next_prev = '';

and, format it and work with it, i've made that change to my library, exist any way to my suggestion gets real, and be in the next release of CodeIgniter?
#2

[eluser]Aken[/eluser]
You can't currently customize the anchor tags themselves without customization, but you can already customize the code that wraps around the previous and next anchors, which makes them just as easy to target.
#3

[eluser]InsiteFX[/eluser]
Yes you can! You can add css classes to any of the links.
Code:
$config['next_link'] = '>';
$config['next_tag_open'] = '<div class="next">';
$config['next_tag_close'] = '</div>';

$config['prev_link'] = '&lt;';
$config['prev_tag_open'] = '<div class="prev">';
$config['prev_tag_close'] = '</div>';

Create those classes in your css file!

This same thing works for the anchor tag also!

Adding a class to every anchor

If you want to add a class attribute to every link rendered by the pagination class, you can set the config "anchor_class" equal to the classname you want.

InsiteFX
#4

[eluser]Unknown[/eluser]
yea, but, for example, i'm using Liquid Admin Template (via themeforest) and the anchors have the classes atached, not the outer elements, thats why i suggest that.




Theme © iAndrew 2016 - Forum software by © MyBB