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

Widgets should reference controllers within their standalone structure when using createController

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Alloy 1.1.0, 2013 Sprint 04
    • Component/s: Widgets
    • Labels:
    • Environment:

      iOS / Android

      Description

      Since Widgets are supposed to act as standalone instances, how do I go about creating multiple view/controllers and referencing them appropriately through createController?

      Example:

      WIdgetA has two views
      widget.xml
      menu.xml

      WidgetA controller wants to create an instance of menu.xml using createController
      var m = Alloy.createController("menu",

      {some object}

      ).getView()

      Expectation is the above should reference the widgets menu view/controller

      Actual result – alloy tries to find the controller within the base alloy/controllers folder

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bgrantges@appcelerator.com Bert Grantges (Inactive)
            • Watchers:
              5 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