Files
NativeScript/tns-core-modules/ui/list-view
Hristo Hristov 25849a1425 implement get/set for selectedBackgroundColor property (#4039)
* implement get/set for selectedBackgroundColor property

* list-view separator color exposed through style

* Style androidStatusBarBackground exposed on Page
2017-04-21 17:57:25 +03:00
..
2016-05-26 14:30:25 +03:00

ListView module.

    var lm  = require("ui/label");
    var lvm = require("ui/list-view");

    var data = [];
    for(var i = 0, l = 1000; i < l; i++) {
       data.push(i);
    }

    var lv = new lvm.ListView();
    lv.items = data;
    lv.on(lvm.ListView.itemLoadingEvent, function(args){
        var label = args.view;
        if(!label) {
            label = new lm.Label();
            args.view = label;
        }
        label.text = "Item " + args.index;
    });