Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1208

Alloy: Support os-attribute to views and styles for consistency

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Runtime, XML
    • Environment:

      master

    • Story Points:
      5

      Description

      In controllers and config.json the selector for conditional code for platforms is os, while in views and styles it is platform. For the sake of simplification and consistency I'd ask for views and styles to support os next to platform.

      Examples

      index.tss

      "View[os=android]": {
        backgroundColor: 'green'
      }
      

      index.xml

      <Alloy>
        <View os="ios" />
      </Alloy>
      

      Related tickets

        Attachments

          Activity

            People

            • Assignee:
              skypanther Tim Poulsen
              Reporter:
              fokkezb Fokke Zandbergen
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration