records_per_page -> recordsPerPage

This commit is contained in:
Samuel Georges 2015-01-02 13:35:27 +11:00
parent 9cfe4ad8f4
commit b9c259c17f
3 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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**.

View File

@ -1,4 +1,5 @@
<div
id="<?= $this->getId() ?>"
data-control="table"
class="control-table"
data-columns="<?= e(json_encode($columns)) ?>"