[ALOY-1213] Alloy.Controller.UI.create - Option to pass properties
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Runtime, Styling |
Labels | TCSupport |
Reporter | Manojkumar Murugesan |
Assignee | Tim Poulsen |
Created | 2014-12-18T06:42:06.000+0000 |
Updated | 2015-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"
}
});
Original Reporter: [~mano_mykingdom]