Skip to content

Properties newIndex and oldIndex not working for SelectedIndexChangedEventData TabView  #1066

@vitaliy-kuzmich

Description

@vitaliy-kuzmich
<TabView selectedIndex="1" selectedColor="#FF0000"   (selectedIndexChange)="tabChanged($event)" iosIconRenderingMode="alwaysOriginal" sdkExampleTitle
         sdkToggleNavButton>
    <StackLayout  *tabItem="{title: 'tab.map' | translate}">
        <!--<GridLayout>
    <WebView src="~/home/map.html"></WebView>
</GridLayout>
-->
        <Label text="First tab item"></Label>
    </StackLayout>

    <StackLayout *tabItem="{title: 'tab.meeting.planner' | translate}">
        <Label text="Second tab item"></Label>
    </StackLayout>
    <StackLayout *tabItem="{title: 'tab.service.profile' | translate}">
        <Label text="Second tab item"></Label>
    </StackLayout>

</TabView>

  tabChanged($event: SelectedIndexChangedEventData) {
        console.log($event.newIndex);
//import {SelectedIndexChangedEventData} from 'ui/tab-view';
// $event.newIndex always undefined
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions