mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
records_per_page -> recordsPerPage
This commit is contained in:
parent
9cfe4ad8f4
commit
b9c259c17f
@ -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);
|
||||
|
@ -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**.
|
||||
|
@ -1,4 +1,5 @@
|
||||
<div
|
||||
id="<?= $this->getId() ?>"
|
||||
data-control="table"
|
||||
class="control-table"
|
||||
data-columns="<?= e(json_encode($columns)) ?>"
|
||||
|
Loading…
x
Reference in New Issue
Block a user