From b9c259c17fc25c5fd2fdb39a5b33993fcd281639 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Fri, 2 Jan 2015 13:35:27 +1100 Subject: [PATCH] records_per_page -> recordsPerPage --- modules/backend/widgets/Table.php | 2 +- modules/backend/widgets/table/README.md | 2 +- modules/backend/widgets/table/partials/_table.htm | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/backend/widgets/Table.php b/modules/backend/widgets/Table.php index bbff7ec57..4f712ca8a 100644 --- a/modules/backend/widgets/Table.php +++ b/modules/backend/widgets/Table.php @@ -99,7 +99,7 @@ class Table extends WidgetBase $this->vars['columns'] = $this->prepareColumnsArray(); $this->vars['recordsKeyColumn'] = $this->recordsKeyColumn; - $this->vars['recordsPerPage'] = $this->getConfig('records_per_page', false) ?: 'false'; + $this->vars['recordsPerPage'] = $this->getConfig('recordsPerPage', false) ?: 'false'; $this->vars['postbackHandlerName'] = $this->getConfig('postback_handler_name', 'onSave'); $this->vars['adding'] = $this->getConfig('adding', true); $this->vars['deleting'] = $this->getConfig('deleting', true); diff --git a/modules/backend/widgets/table/README.md b/modules/backend/widgets/table/README.md index f8625673a..4efc765c6 100644 --- a/modules/backend/widgets/table/README.md +++ b/modules/backend/widgets/table/README.md @@ -169,7 +169,7 @@ The widget is configured with YAML file. Required parameters: * `columns` - the columns definitions, see below. * `data_source` - The data source class. Should specify the full qualified data source class name or alias. See the data source aliases below. * `key_column` - name of the key column. The default value is **id**. -* `records_per_page` - number of records per page. If not specified, the pagination will be disabled. +* `recordsPerPage` - number of records per page. If not specified, the pagination will be disabled. * `postback_handler_name` - AJAX data handler name for the automatic data postback. The data will be posted only when the AJAX requests posts data to this handler. The default value is **onSave**. This parameter is applicable only with client-memory data sources. * `adding` - indicates if record deleting is allowed, default is **true**. * `deleting` - indicates if record deleting is allowed, default is **true**. diff --git a/modules/backend/widgets/table/partials/_table.htm b/modules/backend/widgets/table/partials/_table.htm index 648e0056e..4f621f059 100644 --- a/modules/backend/widgets/table/partials/_table.htm +++ b/modules/backend/widgets/table/partials/_table.htm @@ -1,4 +1,5 @@