Page 1 of 1

tabscompoment tabs icon in angular/ionic project

Posted: Thu Oct 29, 2015 4:51 pm
by mmds89

Hi, i need help to set icon-only on tabs in angular/ionic, in tabsitem properties only have: active, class, component name, and heading, exist another way to set this?

Thanks.


tabscompoment tabs icon in angular/ionic project

Posted: Fri Oct 30, 2015 8:05 am
by Serhii Kulibaba

Hello,

You can do it with CSS, e.g.: add class "test" for that component
and add CSS like this:
pre.test a{
background-image:url(http://example.com/image.png);
}/pre


tabscompoment tabs icon in angular/ionic project

Posted: Fri Oct 30, 2015 11:57 am
by mmds89

Hi,

I no need add image, i need add ion icons like ''icon ion-location" in each tab-item

this is div tab:

code
<div class="tabs rel-tabs" ng-transclude="">

<a style="" ng-click="select()" class="teste tab-item ng-binding active" ng-class="{active: active, disabled: disabled}" tab-heading-transclude=""><tab-heading>Info</tab-heading></a>

<a ng-click="select()" class="tab-item ng-binding" ng-class="{active: active, disabled: disabled}" tab-heading-transclude="">
<tab-heading>Pessoas</tab-heading>
</a>

<a ng-click="select()" class="tab-item ng-binding" ng-class="{active: active, disabled: disabled}" tab-heading-transclude="">
<tab-heading>Local</tab-heading>
</a>

<a ng-click="select()" class="tab-item ng-binding" ng-class="{active: active, disabled: disabled}" tab-heading-transclude="">
<tab-heading>Ingresso</tab-heading>
</a>

<>
/code

i need generate something like this:
code
<div class="tabs">
<a class="tab-item active" href="#">
<i class="icon ion-home"></i>
Test
</a>
<a class="tab-item" href="#">
<i class="icon ion-star"></i>
Favorites
</a>
<>
/code

Thanks


tabscompoment tabs icon in angular/ionic project

Posted: Tue Nov 03, 2015 7:06 pm
by Serhii Kulibaba

We are very sorry, but this is something outside the scope (http://devcenter.appery.io/support-po...) of our standard support.


tabscompoment tabs icon in angular/ionic project

Posted: Sat Nov 12, 2016 7:14 pm
by Matt6607699

Is there an easy way to change just the text of the tabs from the default "tab" text?(ionic app where you add the tabs component) It seems like you can only apply a class to the whole tabs component and not the individual tabs.