public function row(&$material, \samson\pager\Pager & $pager = null, $module = null)
    {
        // Set table row view context
        m()->view($this->row_tmpl);

//        // If there is Navigation for material pass them
//        if (isset($material->onetomany['_structure'])) {
//            foreach ($material->onetomany['_structure'] as $structure) {
//                m()->set('structure', $structure);
//                break;
//            }
//        }

        // Render row template
        return m()
            ->set($material, 'material')
            ->set('pager', $this->pager)
            ->set('structureId', isset($this->nav) ? $this->nav->id : '0')
            ->output();
    }