Is there an easy way to create NumericFields/DecimalFields with Titanium? If not. Is there some examples showing how to create TextFields that only support numeric input, length of input, formatting decimal numbers etc. It would be nice to have:
var decimalfield = Ti.UI.createDecimalField({ length: 10, decimals: 2 }); var integerfield = Ti.UI.createNumericField({ length: 10 });
1 Answer
You can create "TextField" component and set it's keyboard type. For all options see kitchensink example: https://github.com/appcelerator/KitchenSink/blob/master/Resources/examples/textfield_keyboards.js
Your Answer
Think you can help? Login to answer this question!