[英]SilverStripe inline editing / hide field value
This question refers to the SilverStripe-GridFieldExtensions module , specifically the inline editing feature .这个问题是指SilverStripe-GridFieldExtensions 模块,特别是内联编辑功能。 (ss 3.5) (ss 3.5)
The mod displays both the current value of a column as plain text and a form input field that naturally holds the current value by default. mod 将列的当前值显示为纯文本和默认情况下自然保存当前值的表单输入字段。
The first one is not only unnecesssary but also confusing / not user-friendly for some fields like checkboxes (shows value 1
when checked).第一个不仅是不必要的,而且对于某些字段(例如复选框)(选中时显示值1
)也令人困惑/不友好。
Example例子
Type
column it's really unnecessary to show the current value, as the dropdownfield already shows it.对于Type
列,实际上没有必要显示当前值,因为下拉字段已经显示了它。1
which is just strange for end users复选框显示值1
,这对最终用户来说很奇怪How can you disable the plain text value?如何禁用纯文本值?
This happens when you have GridFieldDataColumns()
and GridFieldEditableColumns()
added to your grid field config.当您将GridFieldDataColumns()
和GridFieldEditableColumns()
添加到网格字段配置时,就会发生这种情况。 Try removing GridFieldDataColumns()
尝试删除GridFieldDataColumns()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.