Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1213] Alloy.Controller.UI.create - Option to pass properties

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsRuntime, Styling
LabelsTCSupport
ReporterManojkumar Murugesan
AssigneeTim Poulsen
Created2014-12-18T06:42:06.000+0000
Updated2015-01-05T15:57:42.000+0000

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"
   }
});

Comments

  1. Mauro Parra-Miranda 2014-12-18

    Original Reporter: [~mano_mykingdom]

JSON Source