开发者

ExtJS number renderer: hide if zero

开发者 https://www.devze.com 2023-03-06 06:54 出处:网络
Is there any way for ExtJs number renderer to display no开发者_运维百科thing if the number is zero?That\'s no complete solution, more some hints; since that int in ExtJS can no longer be null you will

Is there any way for ExtJs number renderer to display no开发者_运维百科thing if the number is zero?


That's no complete solution, more some hints; since that int in ExtJS can no longer be null you will always endup with 0. You just can create a custom type that supports null, then you will be able to di this. Or if you don't need any calculations render all into a string.

Edit:

By now you can define useNull on a field and in addition define a defalutValue. But that's not all you can also define a custom converter and/or a custom serializer. So there shouldn't be any problems anymore when using nullable types.

0

精彩评论

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