Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Using on Tab View #29

Open
Jonatthu opened this issue May 23, 2017 · 3 comments
Open

Using on Tab View #29

Jonatthu opened this issue May 23, 2017 · 3 comments

Comments

@Jonatthu
Copy link

I can not get this to work

<TabView [(ngModel)]="tabSelectedIndex" tabTextColor="red" class="ion">
    <StackLayout class="ion" *tabItem="{title: ('ion-flash' | fonticon) }">
        <Label class="ion" [text]="'ion-flash' | fonticon"></Label>
    </StackLayout>
    <StackLayout *tabItem="{title: 'ion-home' | fonticon}">
        <Label text="Bla bla bla"></Label>
    </StackLayout>
</TabView>

It is not showing any error message.
But the line

<Label class="ion" [text]="'ion-flash' | fonticon">
is working fine and displaying the icon.

But

<StackLayout class="ion" *tabItem="{title: ('ion-flash' | fonticon) }">
Is not displaying nothing.

I'm using nativescript 3, with angular and the latest build of this package. Thanks!

@Jonatthu
Copy link
Author

Using

    <template tabItem title="{{'ion-home' | fonticon}}">
        <StackLayout>
            <Label text="First tab item"></Label>
        </StackLayout>
    </template>

Inside the tab view works

@Jonatthu
Copy link
Author

But I don't know how to add text below the icon and customize the size of the icon and the text separately :/

@TinusJ
Copy link

TinusJ commented Apr 4, 2018

Was this solved?

Have the same issue

 `<StackLayout *tabItem="{title: {'fa-home' | fonticon}}">`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants