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

Allow more query options / scope in .tss

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Alloy 1.5.0, Alloy 1.4.1
    • Fix Version/s: Alloy 1.7.0
    • Component/s: Styling
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      2014 Sprint 20 Alloy

      Description

      The docs state that you have to use Alloy.Globals.* in a .tss query. You can actually use a local function in a controller too, i.e. `"#window[if=myFunc()]"` and that will work too.

      What won't work however is basing a query off of params passed to the controller instance. It would work, but the Alloy compiler doesn't allow it - `"#window[if=arguments[0].someProp]"`

      This would be a very powerful addition to the new queries available. It technically already works in the runtime code (I hardcoded it and tried it)...but it just won't compile right now because we're not allowed to put those characters in the tss query.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                skypanther Tim Poulsen
                Reporter:
                rblalock Rick Blalock (Inactive)
                Reviewer:
                Feon Sua Xin Miao
              • Watchers:
                4 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