public function listRender($definition = null)
    {
        if (!count($this->listWidgets)) {
            throw new ApplicationException(Lang::get('backend::lang.list.behavior_not_ready'));
        }

        if (!$definition || !isset($this->listDefinitions[$definition])) {
            $definition = $this->primaryDefinition;
        }

        $listConfig = $this->controller->listGetConfig($definition);

        $vars = [
            'toolbar' => null,
            'filter' => null,
            'list' => null,
        ];

        if (isset($this->toolbarWidgets[$definition])) {
            $vars['toolbar'] = $this->toolbarWidgets[$definition];
        }

        if (isset($this->filterWidgets[$definition])) {
            $vars['filter'] = $this->filterWidgets[$definition];
        }

        $vars['list'] = $this->listWidgets[$definition];

        return $this->listMakePartial('container', $vars);
    }
public function listRender($definition = null)
    {
        if (!count($this->listWidgets)) {
            throw new ApplicationException(Lang::get('backend::lang.list.behavior_not_ready'));
        }

        if (!$definition || !isset($this->listDefinitions[$definition])) {
            $definition = $this->primaryDefinition;
        }

        $listConfig = $this->controller->listGetConfig($definition);

        $vars = [
            'toolbar' => null,
            'filter' => null,
            'list' => null,
        ];

        if (isset($this->toolbarWidgets[$definition])) {
            $vars['toolbar'] = $this->toolbarWidgets[$definition];
        }

        if (isset($this->filterWidgets[$definition])) {
            $vars['filter'] = $this->filterWidgets[$definition];
        }

        $vars['list'] = $this->listWidgets[$definition];

        return $this->listMakePartial('container', $vars);
    }
public function listRender ( $ definition = null ) { if ( ! count ( $ this -> listWidgets ) ) { throw new ApplicationException ( Lang :: get ( 'backend::lang.list.behavior_not_ready' ) ) ; } if ( ! $ definition || ! isset ( $ this -> listDefinitions [ $ definition ] ) ) { $ definition = $ this -> primaryDefinition ; } $ listConfig = $ this -> controller -> listGetConfig ( $ definition ) ; $ vars = [ 'toolbar' => null , 'filter' => null , 'list' => null , ] ; if ( isset ( $ this -> toolbarWidgets [ $ definition ] ) ) { $ vars [ 'toolbar' ] = $ this -> toolbarWidgets [ $ definition ] ; } if ( isset ( $ this -> filterWidgets [ $ definition ] ) ) { $ vars [ 'filter' ] = $ this -> filterWidgets [ $ definition ] ; } $ vars [ 'list' ] = $ this -> listWidgets [ $ definition ] ; return $ this -> listMakePartial ( 'container' , $ vars ) ; }
Renders the widget collection.
@param  string $definition Optional list definition.
@return string Rendered HTML for the list.
Renders the widget collection .