简体   繁体   English

如何在自定义YUI单元格编辑器中指定返回值?

[英]How do I specify the return value in a custom YUI cell editor?

I created a custom cell editor that extends BaseCellEditor but how do I specify the value of the cell that will be saved/returned? 我创建了一个自定义单元格编辑器,该编辑器扩展了BaseCellEditor,但是如何指定要保存/返回的单元格的值?

Setting the this.value = "new value" doesn't work. 设置this.value =“ new value”不起作用。

Any ideas? 有任何想法吗?

Thanks in advance. 提前致谢。

Found out you have to overwrite getInputValue() the same way you have to overwrite renderForm() 发现您必须以必须覆盖renderForm()的相同方式覆盖getInputValue()

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

Ctrl-f to find the getInputValue() YUI automatically formats the data using the formatter you specified. Ctrl-f查找getInputValue()YUI使用您指定的格式化程序自动格式化数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM