data_source -> dataSource

This commit is contained in:
Samuel Georges 2015-01-02 13:50:51 +11:00
parent 89f79a7665
commit 59a0e08cd0
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ class Table extends WidgetBase
$this->recordsKeyColumn = $this->getConfig('key_column', 'id'); $this->recordsKeyColumn = $this->getConfig('key_column', 'id');
$dataSourceClass = $this->getConfig('data_source'); $dataSourceClass = $this->getConfig('dataSource');
if (!strlen($dataSourceClass)) { if (!strlen($dataSourceClass)) {
throw new SystemException('The Table widget data source is not specified in the configuration.'); throw new SystemException('The Table widget data source is not specified in the configuration.');
} }

View File

@ -167,7 +167,7 @@ Multiple fields are allowed as well:
The widget is configured with YAML file. Required parameters: The widget is configured with YAML file. Required parameters:
* `columns` - the columns definitions, see below. * `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. * `dataSource` - 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**. * `key_column` - name of the key column. The default value is **id**.
* `recordsPerPage` - 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.
* `handler` - 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. * `handler` - 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.
@ -176,7 +176,7 @@ The widget is configured with YAML file. Required parameters:
* `toolbar` - specifies if the toolbar should be visible, default is **true**. * `toolbar` - specifies if the toolbar should be visible, default is **true**.
* `height` - specifies the data table height, in pixels. The default value is **false** - the height is not limited. * `height` - specifies the data table height, in pixels. The default value is **false** - the height is not limited.
The `data_source` parameter can take aliases for some data source classes for the simpler configuration syntax. Known aliases are: The `dataSource` parameter can take aliases for some data source classes for the simpler configuration syntax. Known aliases are:
* `client` = \Backend\Classes\TableClientMemoryDataSource * `client` = \Backend\Classes\TableClientMemoryDataSource