Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 456 Bytes

collapse.md

File metadata and controls

16 lines (10 loc) · 456 Bytes

Collapse

Encore\Admin\Widgets\Collapse class used to generate folding components:

use Encore\Admin\Widgets\Collapse;

$collapse = new Collapse();

$collapse->add('Bar', 'xxxxx');
$collapse->add('Orders', new Table());

echo $collapse->render();

The Collapse::add($title, $content) method is used to add a collapsed item to the collapsing component. The $title parameter sets the title of the item. The$content parameter is used to .