- class
- grid - required for grid template
- name "string" - Name of the grid, must be unique for each grid on the page
- href "url" - Base href for links generated by grid
- route "route" - Base route for links generated by grid
- use "modules" comma separated list of modules loaded into template from $app->globals service
- sort - create sort link
- pager
- size "number" - Number of pages shown in pager navigation. Default 10.
- pglen "number" - Length of page of the grid
- nohide - Always show pager - also if just one page exists.
(*) Note: Set $app->config['pclib.grid.sorticons'] = null; to disable sort arrows.
In addition you can use Template tags implemented by class Tpl too.
Grid template uses a few special blocks:
- BLOCK items - Define one row of the grid, it is repeated for each row of the grid. Required!
- BLOCK summary - Define row with summarization data
For pager, you can use following tag modificators:
- {pager.first} Show link to first page
- {pager.last} Show link to last page
- {pager.prev} Show link to previous page
- {pager.next} Show link to next page
- {pager.all} Show link to list of all pages together
- {pager.pages} Show links to individual pages separated by separ
- {pager.total} Show number of rows of the grid
- {pager.maxpage} Show number of pages of the grid
- {pager.page} Show current page number
- Common grid tag attributes