Quantcast
Viewing all articles
Browse latest Browse all 8068

add textArea to listView

you can add a textArea in listView?

var plainTemplate = {
    childTemplates: [
        {                            
            type: 'Ti.UI.Label', 
            bindId: 'title',           
            properties: {            
                width: '100%',
                height: 30,
                left: 0,
                top:0
            }
        },
 
        {
            type: 'Ti.UI.TextArea',
            bindId: 'campo',
            properties: {
                top:60,
                width: '70%',
                left:10,
                height:40
            }
        }
 
    ],
 
    events: {click: check }
};
 
var listView = Ti.UI.createListView({
    templates: { 'uncheck': plainTemplate},
    defaultItemTemplate: 'uncheck'
});
 
var data = [];
for (var i = 0; i < 20; i++) {
    data.push({
 
        title : { text: 'row' + i },
 
        properties : {
            itemId: 'row' + i,
            accessoryType: Ti.UI.LIST_ACCESSORY_TYPE_NONE,
        }
    });
}
 
var section = Ti.UI.createListSection();
section.setItems(data);
listView.sections = [section];
 
function check() {
    alert('estas aqui!!');
}
 
win.add(listView);
I put this issue twice now and still not get an answer.

The problem is that by including the textArea packages and select a text field to enter a text, this empiesa to write in another.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>