Adding properties to a variable made with "require" in Titanium -


for example, in following code:

var mycustomview = require('mycustomview'); var myview = new mycustomview('a message!'); titanium.ui.currentwindow.add(myview); 

i want add visible=false property myview. can that?

you can add properties want, works:

myview.visible = false; 

it depends lot on wanting accomplish, since adding myview window, assuming inherited ti.ui.view, means can set visible property can hide / show view.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -