modnaut / primary

0 stars 0 forks source link

Text Field Types #13

Closed modnaut closed 11 years ago

modnaut commented 11 years ago

Is there the ability to specify the type of text field it is, for example integer vs string? That will automatically throw an error on screen if the user gives the wrong expected type.

modnaut commented 11 years ago

There is a subclass of TextField called NumberField that allows just that. You can specify via attributes all kinds of things like decimals, etc