我创建了一个扩展BaseCelleditor的自定义单元编辑器,但是如何指定将保存/返回的单元格的值?

设置this.value =“新值”不起作用。

有任何想法吗?

提前致谢。

有帮助吗?

解决方案

发现您必须像覆盖Renderform()相同的方式覆盖GetInputValue()

http://developer.yahoo.com/yui/docs/celleditor.js.html

ctrl-f找到getInputValue()yui会使用您指定的格式化器自动格式化数据。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top