* zin: add data-load attribute to link in pager size menu.
This commit is contained in:
@@ -38,7 +38,7 @@ function usePager(array $userSetting = null, string $pagerName = 'pager'): array
|
||||
else
|
||||
{
|
||||
$setting['items'][] = array('type' => 'info', 'text' => $pager->lang->pager->totalCountAB);
|
||||
$setting['items'][] = array('type' => 'size-menu', 'text' => str_replace('<strong>', '', str_replace('</strong>', '', $pager->lang->pager->pageSize)), 'dropdown' => array('placement' => 'top'));
|
||||
$setting['items'][] = array('type' => 'size-menu', 'text' => str_replace('<strong>', '', str_replace('</strong>', '', $pager->lang->pager->pageSize)), 'dropdown' => array('placement' => 'top'), 'itemProps' => array('data-load' => 'table'));
|
||||
$setting['items'][] = array('type' => 'link', 'page' => 'first', 'hint' => $pager->lang->pager->firstPage, 'icon' => 'icon-first-page');
|
||||
$setting['items'][] = array('type' => 'link', 'page' => 'prev', 'hint' => $pager->lang->pager->previousPage, 'icon' => 'icon-angle-left');
|
||||
$setting['items'][] = array('type' => 'info', 'text' => '{page}/{pageTotal}');
|
||||
|
||||
Reference in New Issue
Block a user