Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-19837

Bulletproof NumericStepper's valueParseFunction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • Spark: NumericStepper
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      NumericStepper lets you format the text displayed in the TextInput - coupled with this format function is a parse function that lets you pull out the numerical value of whatever is displayed in the TextInput (which may not be a numeric value like 3, but instead a string like '3 pixels').

      Currently, if the parse of the TextInput's text fails, we don't handle that as well as we could - the user would have to detect this (we basically require the user's parse method to be correct and handle all of what can be inputted into the TI). We could expose a hook where if the parsing fails, the value committing could be part of the general validation mechanism.

      This is out of scope for 4.0, but a nice thing to add in a later release.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: