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

Alloy.Controller.UI.create - Option to pass properties

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Runtime, Styling
    • Labels:
    • Story Points:
      13

      Description

      Present behaviour

       var imageView = $.UI.create("ImageView",{
           apiName: "ImageView",
           classes: ["profile-img"],
           id: "profileImg"
      });
      imageView.image = "url";
      

      Image url will be dynamic, so good to make a way to pass it at creation.

      Expected behaviour

       var imageView = $.UI.create("ImageView",{
           apiName: "ImageView",
           classes: ["profile-img"],
           id: "profileImg",
           properties: {
            image: "url"
         }
      });
      

        Attachments

          Activity

            People

            • Assignee:
              skypanther Tim Poulsen
              Reporter:
              mano_mykingdom Manojkumar Murugesan
            • Watchers:
              4 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