Symfony2,奏鸣曲:折叠组 [英] Symfony2, Sonata : Collapsed group

查看:36
本文介绍了Symfony2,奏鸣曲:折叠组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试做一些相对简单的事情,但是没有用.

I've been trying to do something relatively simple but that does not work.

我希望能够在奏鸣曲中折叠组以增强用户体验.

I want to be able to collapse groups in sonata to enhance the user's experience.

->with('MyGroup', array('collapsed' => true))
    -add('MyField')
->end();

这是基于奏鸣曲 文档.

很简单,但我不明白为什么它不起作用.array('collapsed' => true) 还不够吗?

Pretty simple but i can't see why it does not work. Does array('collapsed' => true) is not enough?

有问题吗?

推荐答案

折叠选项似乎已在最新版本的 Sonata 中删除:

The collapsed option seems to have been removed in the latest version of Sonata :

在 2.2 和最新版本中没有,只有一个参考折叠在文件中,这是一个 css 类.https://github.com/sonata-project/SonataAdminBundle/blob/2.2/Resources/views/CRUD/base_edit_form.html.twig#L41

in 2.2 and latest it is not, there is only one reference of collapsed in the file, which is for a css class. https://github.com/sonata-project/SonataAdminBundle/blob/2.2/Resources/views/CRUD/base_edit_form.html.twig#L41

变更日志 2.2:https://github.com/sonata-project/SonataAdminBundle/blob/master/UPGRADE-2.2.md

这篇关于Symfony2,奏鸣曲:折叠组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆