[Enhancement #1232 : Added option for showing records per page in configuration.]

This commit is contained in:
Vivek 2019-10-18 17:07:57 +05:30
parent 8fe90bc0f6
commit 5b6ce4a6ab
4 changed files with 10 additions and 0 deletions

View File

@ -106,6 +106,12 @@ return [
]
],
'channel_based' => true,
], [
'name' => 'admin_page_limit',
'title' => 'admin::app.admin.system.admin-page-limit',
'type' => 'text',
'validation' => 'required|numeric|max:2',
'channel_based' => true,
]
]
], [

View File

@ -896,6 +896,7 @@ return [
'footer-content' => 'Footer Text',
'locale-options' => 'Unit Options',
'weight-unit' => 'Weight Unit',
'admin-page-limit' => 'العناصر الافتراضية لكل صفحة (المشرف)',
'design' => 'Design',
'admin-logo' => 'Admin Logo',
'logo-image' => 'Logo Image',

View File

@ -1185,6 +1185,7 @@ return [
'footer-toggle' => 'Toggle footer',
'locale-options' => 'Unit Options',
'weight-unit' => 'Weight Unit',
'admin-page-limit' => 'Default Items Per Page (Admin)',
'design' => 'Design',
'admin-logo' => 'Admin Logo',
'logo-image' => 'Logo Image',

View File

@ -142,6 +142,8 @@ abstract class DataGrid
public function __construct()
{
$this->invoker = $this;
$this->itemsPerPage = core()->getConfigData('general.general.locale_options.admin_page_limit') ?: $this->itemsPerPage;
}
/**