The Number|Text etc fields are very useful in my grids, so I'd like to use them in forms otherwise. Following the path of inheritance is pretty difficult... can anybody tell me what I might do to replace an ordinary input type='text', for example, with a NumberField?
thanks!
thanks!

|
#2
|
var x = new Ext.form.NumberField();
x.applyTo("id");
![]() |
|
#3
| |
|
Quote:
![]() |
|
#4
|
|
Have a look at the form example which isn't in the doc menu yet. It's not fully finished, but works and has lots of samples for exactly this.
![]() |
|
#5
|
|
I blogged about the inheritance chain of the form fields about a week ago. Also have some of the undocumented properties of the TextField config options. As always, it's undocumented and we're dealing with alpha code; so don't take any of this as being 'stable'.
http://www.divergingpath.com/index.c...eld-Validation ![]() |
使用NumberField替换文本输入
本文讨论了如何在ExtJS框架中用NumberField组件替换普通的文本输入框,以实现数值输入的有效验证和管理。提供了创建NumberField实例并将其应用于特定ID元素的方法。
3032

被折叠的 条评论
为什么被折叠?



