Search code examples
iosiphoneuitableviewtitaniumappcelerator

Push a window when a row is selected


I am new to Titanium Studio. I am trying some samples in TableViews. How to push a new window when a row is selected in the tableView?


Solution

  • Open a new window in table row's click event.

    some thing like this,

    row.addEventListener('click', function(){
        var win = Ti.UI.createWindow({
          height:480,
          width:320,
          url:'sample.js'
        });
    
           win.open({modal: true});
    });