titanium - Alloy: correct way to create and use a ListView? -


What is the proper way to separate the view and controller with mixed?

Some Controller JS:

$ List.setSections (section); , I know that it populates a ListView with the ID = 'list' in the XML list ...

or

var list = Ti .UI.createListView ({stuff}) and then somehow push the view to the list.

I'm not sure what is the best way in soul with MVC.

If you use alloy, you should make a list in XML in the actual view file. You can do stuff with it in the controller using $ .list, as you do in your first option.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -