hi,
i was wondering if its possible to create for example a button (in alloy) and give it an id of btnTest. Could i approach this button in my js file using commonJS ?
something like this:
˜˜˜˜
(function(){
if (require('platform').isTall()) {
$.btnTest.addEventListener('click', function(e){
var home = Alloy.createController('homescreen').getView();
home.open();
});
}
$.winTopics.open();
})();
˜˜˜