Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10344] Android: Implement applyProperties({}) method on Ti.UI objects to take a list of json properties as is done at create time.

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-08-15T16:44:45.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sSprint 2012-17 API, Release 3.0.0
ComponentsAndroid
Labelsapi, module_button, qe-review, qe-testadded
ReporterRussell McMahon
AssigneePing Wang
Created2012-08-08T11:44:01.000+0000
Updated2013-12-10T06:01:21.000+0000

Description

var win = Titanium.UI.createWindow({backgroundColor:'white'});
win.open();
 
var btn = Ti.UI.createButton({left:10, top:10, width:100, height:40, title:'Tap Me!'});
btn.addEventListener('click',function(e){
    btn.applyProperties({width:200,height:100,title:'I Was Tapped!'});
});
win.add(btn);

Comments

  1. Vishal Duggal 2012-08-10

    Moving to next Sprint
  2. Vishal Duggal 2012-08-15

    Fixed by https://github.com/appcelerator/titanium_mobile/pull/2749 on master
  3. Shyam Bhadauria 2012-08-16

    Environment used for verification - Tested with Titanium SDK: 2.2.0.v20120815194913 Tested with Titanium  Studio: 2.1.1.201207271312 Device - Samsung GALAXY Note Android 2.3.6 Machine OS - MAC 10.7.3
  4. Shameer Jan 2013-12-10

    Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/5047

JSON Source