codeconsortium / ccdn-gui-bundle
This bundle provides a means to generate Twig renderable UI's from your own custom services
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.5
- symfony/framework-bundle: ~2.0
This package is not auto-updated.
Last update: 2024-11-09 17:38:04 UTC
README
Twig Renderable Gui Builder using Class derived types
This project is an experimental work in progress
Usages:
$productMeta = $this->factory->create(SidebarListSubMenu::getType())->setLabel('Product Meta')->setIcon('icon-folder'); // creates link before before new list?
$productMeta->addLink('Categories', 'foo', null, []);
$productMeta->add($this->factory->create(Link::getType())->setLabel('Attributes'));
$productMeta->add($this->factory->create(Link::getType())->setLabel('Products'));
$menu->add($productMeta);