codeconsortium/ccdn-gui-bundle

此包提供了一种从您的自定义服务生成Twig可渲染UI的方法

安装: 7

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:symfony-bundle

dev-master 2015-03-02 00:20 UTC

This package is not auto-updated.

Last update: 2024-09-14 16:57:05 UTC


README

使用类派生类型构建的Twig可渲染GUI构建器

此项目是一个正在进行中的实验性工作

用法

    $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);