/**
* Will return a default DatatableView with no columns defined, but with the view and the version prepared.
* The user is responsible to populate the view with the wished columns, because they can not be derived from
* the server side column configuration.
*
* @param string $tableView the name of the table view to render
* @param string $scriptView the name of the script view to render
*
* @return DatatableView the view to work with
*/
public function view($tableView = null, $scriptView = null)
{
if (is_null($tableView)) {
$tableView = $this->versionEngine->getVersion()->tableView();
}
if (is_null($scriptView)) {
$scriptView = $this->versionEngine->getVersion()->scriptView();
}
return new DatatableView($tableView, $scriptView, $this->viewFactory, $this->configRepository, []);
}