2018-05-02, 03:39:03
For UIkit, since NM 3.1 you can use custom settings:
...however you cannot currently add attributes
As you know, you can also do something like that for Bootstrap 3 (except for the
But in BS4 I see there are new classes .page-item, .page-link - These cannot currently be added: I would have to add support with a couple new custom settings (perhaps
Still, you cannot add attributes like
So either I add more custom settings, or perhaps allow generating the pagenav in a different, more flexible way. Ideally it would be with some template tags, like I've made for post rendering in 3.7 beta, but I think it would not be very intuitive, it would have a lot of conditionals... I have to think about it.
Code:
markupNav ul
classNav "uk-pagination uk-flex-center"
markupNavItem li
classNavItemDisabled "uk-disabled"
classNavItemCurrent "uk-active"
...however you cannot currently add attributes
uk-pagination-previous
, uk-pagination-next
to Previous, Next items.As you know, you can also do something like that for Bootstrap 3 (except for the
aria-label
attribute)But in BS4 I see there are new classes .page-item, .page-link - These cannot currently be added: I would have to add support with a couple new custom settings (perhaps
classNavItem
, classNavLink
)Still, you cannot add attributes like
tabindex="-1"
or other recommended additional markup...So either I add more custom settings, or perhaps allow generating the pagenav in a different, more flexible way. Ideally it would be with some template tags, like I've made for post rendering in 3.7 beta, but I think it would not be very intuitive, it would have a lot of conditionals... I have to think about it.