Skip to content

TabView *tabItem binding not updating value #845

Closed
@NickIliev

Description

@NickIliev

Test application to demonstrate the issue here

E.g.

<TabView #tv iosIconRenderingMode="alwaysTemplate" (selectedIndexChange)="onIndexChange($event)" selectedTabTextColor="green">
    <StackLayout *tabItem="myFirstItem">
        <Label text="First tap" textWrap="true"></Label>
    </StackLayout>
    <StackLayout *tabItem="mySecondItem">
        <Label text="Second tab item"></Label>
    </StackLayout>
    <StackLayout *tabItem="myThirdItem">
        <Label text="Third tab item"></Label>
    </StackLayout>
</TabView>

where myFirstItem is tabItem object of the follwing kind

this.myFirstItem = { title: "Selected", iconSource: "~/images/logo.png" };

Result: Changing the value via binding won't be respected

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