-
Notifications
You must be signed in to change notification settings - Fork 4
Does this plugin work with the latest version of Nativescript? #6
Copy link
Copy link
Open
Description
I get this error when trying to load the simplest example:
file:///app/tns_modules/nativescript-sectioned-list-view/list-view.js:178:71: JS ERROR TypeError: owner.items.getNoOfSections is not a function. (In 'owner.items.getNoOfSections()', 'owner.items.getNoOfSections' is undefined)
page = args.object;
var students = [
{"name" : "Alice", gender:"female"},
{"name": "Adam", gender: "male"},
{"name": "Bob", gender: "male"},
{"name": "Brittany", gender: "female"},
{"name": "Evan", gender: "male"}
];
page.bindingContext = { items : students }
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="loaded"
xmlns:tools="nativescript-sectioned-list-view">
<tools:SectionedListView items="{{items}}" rowHeight="44">
<tools:SectionedListView.itemTemplate>
<Label text="{{name}}" />
</tools:SectionedListView.itemTemplate>
</tools:SectionedListView>
</Page>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels