-
Notifications
You must be signed in to change notification settings - Fork 0
Noodle EnterHeader() Method
Dan Kranz edited this page Sep 24, 2021
·
4 revisions
Add a field to the header portion of a new data view.
One must call InitializeView prior to adding fields to a data view.
EnterHeader(bfi)
Parameter | Description |
---|---|
bfi | Index of the field to add to the header |
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"]);
// Create a new data view; Category, Item, and Seq all in the header
db1.InitializeView();
db1.EnterHeader(2);
db1.EnterHeader(3);
db1.EnterHeader(1);
db1.GenerateView();