开发者

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

开发者 https://www.devze.com 2023-02-01 07:19 出处:网络
I created a custom cell editor that extends BaseCellEditor but how do I specify the value of the cell that will be saved/returned?

I created a custom cell editor that extends BaseCellEditor but how do I specify the value of the cell that will be saved/returned?

Sett开发者_StackOverflowing the this.value = "new value" doesn't work.

Any ideas?

Thanks in advance.


Found out you have to overwrite getInputValue() the same way you have to overwrite renderForm()

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消