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

There is no way to change the labels of the ToggleSwitch without reskinning

    XMLWordPrintableJSON

Details

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

    Description

      Steps to reproduce:
      Right now, the only way to change the label of a ToggleSwitch from On/Off to something else is to reskin. I feel that it is common to see ToggleSwitches that have Yes/No labels. It seems odd that I have to reskin to get this functionality.

      This was discovered as part of the i3 workflow

      Desired results:
      Add new properties to ToggleSwitch that allow me to change the labels

      Workaround (if any):
      Apply a custom skin to the component:
      package skins
      {
      import spark.skins.mobile.ToggleSwitchSkin;

      public class YesNoToggleSwitchSkin extends ToggleSwitchSkin
      {
      public function YesNoToggleSwitchSkin()

      { super(); selectedLabel = "Yes"; unselectedLabel = "No"; }

      }
      }

      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: