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

Alloy: Support WPATH in widget XML view attribute values

    Details

      Description

      At the moment you cannot use WPATH in a widget's XML view. You need to set them via TSS. Which is OK, but some like to do so in XML, like they're used to do in HTML.

      widget.js

      <Alloy>
      	<ImageView id="image" image="WPATH('images/a.png')" />
      </Alloy>
      

      compiled widget.js

          $.__views.image = Ti.UI.createImageView({
              image: "WPATH('images/a.png')",
              id: "image"
          });
      

      working widget.tss

      "ImageView": {
        image: WPATH('images/a.png')
      }
      

        Attachments

          Activity

            People

            • Assignee:
              bhouse Brenton House
              Reporter:
              fokkezb Fokke Zandbergen
              Reviewer:
              Ewan Harris
              Tester:
              Samir Mohammed
            • Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration