JoshDSommer / nativescript-ngx-slides

A NativeScript + Angular module for to add a slides component to your mobile app
Other
45 stars 34 forks source link

IOS- RadlistView ItemSelect event does not work inside <slide> #60

Open anuragd7 opened 6 years ago

anuragd7 commented 6 years ago

Hi I am trying to embed a radlistview in one of the slides. I find that the itemSelected() event does not work on the radlistview inside of the slide. My code is as follows:

<slide>
    <GridLayout marginTop="15%" height="30%">
        <RadListView ios:minHeight="100%" #radlist [items]="options" selectionBehavior="Press" multipleSelection="true" (itemSelected)="onOptionSelected($event)" (itemDeselected)="onOptionDeselected($event)">
            <ng-template tkListItemTemplate let-item="item">
                <StackLayout class="profile-grid left-margin-10 right-margin-10" [ngClass]="{ 'box-selected': item.selected}" verticalAlignment="center">
                    <Label [text]="item.image" class='icomoon1 icon font-profile-icon' [ngClass]="{ 'box-text-selected': item.selected}"></Label>
                    <Label class="abel font-profile-text" [ngClass]="{ 'box-text-selected': item.selected}" textWrap="true" [text]="item.optionName" textAlignment="center"></Label>
                </StackLayout>
            </ng-template>
            <ListViewGridLayout tkListViewLayout scrollDirection="Vertical" ios:itemHeight="100%" spanCount="5"></ListViewGridLayout>
        </RadListView>
    </GridLayout>
    </slide>

I am using tns version 3.4.2. Any suggestions.