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

Creation functions for widgets

    Details

      Description

      update (2/22/2013)

      Widgets will have an object available in controllers that will allow them to execute these functions and get other information about the current widget. Only widget controllers will have this available, non-widget controllers will not have access to this object. The relevant widgetId will be embedded in these calls, so they will have the same signature as the Alloy namespace counterparts.

      • Widget.createController(name, args)
      • Widget.createWidget(id, name, args)
      • Widget.createModel(name, args)
      • Widget.createCollection(name, args)
      • Widget.widgetId

      original

      The following functions always reference locations relative to the "app" directory:

      • Alloy.createController()
      • Alloy.createWidget()
      • Alloy.createModel()
      • Alloy.createCollection()

      These functions are often executed within controllers in widgets. It would be beneficial for developers if these functions references the paths relative to the given widget, rather than those in the app itself which don't really apply to the widget. I'd like to do it transparently without having the developers needs to pass additional information into those functions, but I'll need to investigate further to see if that is possible.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tlukasavage Tony Lukasavage
            • Watchers:
              1 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