NativeScript Accordion
Install
tns plugin add nativescript-accordion
Usage
IMPORTANT: Make sure you include xmlns:accordion="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" }
]
}
]
selectedIndexes =
Core
Multi Template
Vue
Vue
Multi Template
Angular
; @
Multi Template
Config
public selectedIndexes =
<Accordion allowMultiple="true" [selectedIndexes]="selectedIndexes">
ScreenShots
Android | IOS |
---|---|