Re: [flexcoders] TextInput for percentage
I'll take a look at flexlib, but just to clarify, I don't just want % in the field - when the value in the model is 100, I want 100%, and I want the user to be able to type 100 or 100%. Thanks. On Dec 11, 2007 7:01 PM, Adnan Doric [EMAIL PROTECTED] wrote: Hello, I would go for : Flexlib: PromptingTextInput.prompt = % + PromptingTextInput.restrict=0-9 + NumberValidator 0-100 Cheers, Adnan Richard Rodseth wrote: Any ideas on the best approach to implementing a text input for percentage values? I haven't found any built-in validators/formatters. Basically I just want the field to display the % sign, allow it to be typed in, and strip it out when processing the value. Thanks.
RE: [flexcoders] TextInput for percentage
Check out the TextInputMask.as and the MaskFormatter.as components generated by the FB Coldfusion Application Wizard. These might do what you want. Also, there's a masked text input component on the Adobe Flex exchange that would probably do what you want, too. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Wednesday, December 12, 2007 9:04 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] TextInput for percentage I'll take a look at flexlib, but just to clarify, I don't just want % in the field - when the value in the model is 100, I want 100%, and I want the user to be able to type 100 or 100%. Thanks. On Dec 11, 2007 7:01 PM, Adnan Doric HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: Hello, I would go for : Flexlib: PromptingTextInput.-prompt = % + PromptingTextInput.-restrict=0-9 + NumberValidator 0-100 Cheers, Adnan Richard Rodseth wrote: Any ideas on the best approach to implementing a text input for percentage values? I haven't found any built-in validators/formatte-rs. Basically I just want the field to display the % sign, allow it to be typed in, and strip it out when processing the value. Thanks. No virus found in this outgoing message. Checked by AVG. Version: 7.5.503 / Virus Database: 269.17.1/1181 - Release Date: 12/11/2007 5:05 PM
[flexcoders] TextInput for percentage
Any ideas on the best approach to implementing a text input for percentage values? I haven't found any built-in validators/formatters. Basically I just want the field to display the % sign, allow it to be typed in, and strip it out when processing the value. Thanks.
Re: [flexcoders] TextInput for percentage
Hello, I would go for : Flexlib: PromptingTextInput.prompt = % + PromptingTextInput.restrict=0-9 + NumberValidator 0-100 Cheers, Adnan Richard Rodseth wrote: Any ideas on the best approach to implementing a text input for percentage values? I haven't found any built-in validators/formatters. Basically I just want the field to display the % sign, allow it to be typed in, and strip it out when processing the value. Thanks.