Chumper\Datatable\Table::script PHP Method

script() public method

public script ( null $view = null ) : mixed
$view null
return mixed
    public function script($view = null)
    {
        if (!is_null($view)) {
            $this->script_view = $view;
        }
        // create mapping for frontend
        if (!$this->createdMapping) {
            $this->createMapping();
        }
        return View::make($this->script_view, array('options' => $this->options, 'callbacks' => $this->callbacks, 'id' => $this->idName));
    }