# NativeScript Accordion ## Install `npm install nativescript-accordion` ## Usage IMPORTANT: Make sure you include xmlns:accordion="@triniwiz/nativescript-accordion" on the Page element ### Data By default the plugin will look for the `items` property in each item but you can set name by setting `childItems="blah"` on the `Accordion` instance ``` this.items = [ { title: "1", footer: "10", headerText: "First", footerText: "4", blah: [ { image: "~/images/a9ff17db85f8136619feb0d5a200c0e4.png", text: "Stop" }, { text: "Drop", image: "http://static.srcdn.com/wp-content/uploads/Superman-fighting-Goku.jpg" } ] } ] ``` ```ts selectedIndexes = [0,3] ``` ## Core ```xml ``` ### Multi Template ```xml ``` ## Vue ```js import Vue from 'nativescript-vue' import Pager from 'nativescript-accordion/vue' Vue.use(Pager) ``` ```html ``` ### Multi Template ```html ``` ## Angular ```js import { AccordionModule } from "nativescript-accordion/angular"; @NgModule({ imports: [ AccordionModule ] }) ``` ```html ``` ## Multi Template ```html ``` ## Config ```ts public selectedIndexes = [0,3] ``` ``` ```