문제

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

Setting 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top