Skip to content

Does this plugin work with the latest version of Nativescript? #6

@davecoffin

Description

@davecoffin

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions