Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Titanium itself is essentially MVC given that your app.js file is the main controller and each View you create is the view and you pass (or set) model data against the view.</p> <p>In Titanium, you can decompose your application using a couple of nice built-in mechanisms:</p> <ol> <li><p><a href="https://developer.appcelerator.com/apidoc/mobile/latest/Titanium.include-method.html" rel="nofollow noreferrer">Titanium.include</a> - Titanium.include allows you to include one or more JS files in place much like the C <code>#include</code> compiler directive. You can put common functions and JS classes in this file and then include them where ever you want them imported and available.</p></li> <li><p><a href="http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.createWindow-method.html" rel="nofollow noreferrer">Titanium.UI.createWindow</a> - you can create a new View as as a property of the new Window pass in a URL to another JS context which will create a new JS sub-context and allow you to maintain its own variable space (but still give you access back to your parent).</p></li> </ol> <p>Also, in Titanium, you can create folders that allow you to logically organize your application in a way that is suitable to you and your application.</p> <p><strong>Edit:</strong> Today, the Titanium.Include method is deprecated. As mentionned in the documentation, we should create a CommonJS module and use the <code>require()</code> statement.</p> <p>More information about this statement : <a href="http://docs.appcelerator.com/titanium/3.0/#!/api/Global-method-require" rel="nofollow noreferrer">Require</a></p> <p>More information about modules : <a href="https://wiki.appcelerator.org/display/guides2/CommonJS+Modules+in+Titanium" rel="nofollow noreferrer">Modules</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload