appcelerator - Alloy - Controller.addTopLevelView? -
recently came across someone's code. alloy markup empty <alloy />
. in controller, adds view using $.addtoplevelview()
.
how come can't find documentation regarding function?
good point. might because it's considered private, although start _
indicate since js doesn't support private methods.
it against idea of alloy not use xml file markup instead use "classic" titanium code in controller method.
however, might idea pr against following file request documented:
https://github.com/appcelerator/alloy/edit/master/alloy/lib/alloy/controllers/basecontroller.js
Comments
Post a Comment