Fulib v0.1.4 Fulib.Paginater.ViewHelper View Source
Link to this section Summary
Link to this section Functions
Link to this function
paginate(paginater, opts \\ []) View Source
HTML分页
paginater %Fulib.Paginater.CountResult{}
opts
- :
base_uri
# 基础URI - :
params
# 额外的url参数 - :
style
基础的分页形式(:default, :simple_default, :simple_whole) 会使用相应style默认的配置 :
page_param
- :page, # 参数名
:
param_type
# 分页参数的样式- :query # 分页采用 query 查询
- :folder # 分页采用 REST 风格
- :
with_previous
true, - :
with_next
true, - :
with_large_next
true, - :
with_jump
false, - :
with_first
false, - :
with_last
false, - :
with_first_disabled
true, - :
with_previous_disabled
true, - :
with_next_disabled
true, - :
with_last_disabled
true - :
nav_style
:ul, - :
with_pages
true, - :
window
3, - :
last_right
5, - :
right
1, - :
first_left
5, - :
left
1