-
Notifications
You must be signed in to change notification settings - Fork 0
Noodle LineCount() Method
Dan Kranz edited this page Feb 26, 2021
·
1 revision
Returns the number of lines on a data view page
LineCount(page)
Parameter | Description |
---|---|
page | Page number |
var items = [
["1","Vegetable","Tree","1"],
["2","Animal","Bird","1"],
["3","Mineral","Diamond","1"],
["4","Vegetable","Flower","1"],
["5","Vegetable","Grass","1"],
["6","Animal","Cat","1"],
["7","Animal","Dog","1"],
["8","Mineral","Ruby","1"],
["9","Mineral","Quartz","1"]
];
var db1 = new Noodle(items, ["Seq","Category","Item","Count"]);
db1.InitializeView();
db1.EnterHeader(2);
db1.EnterColumnar(3);
db1.EnterColumnar(1);
db1.GenerateView();
// Get the number of lines on a page. Pages are numbered, starting with 1.
var page = 1;
var nline = db1.LineCount(page); // nline=3