1.1.5 • Published 5 years ago

ng-smart-tabs v1.1.5

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

logo


Ng Smart Tabs

created by Andrew Wormald

Installation:

Step 1:
npm install ng-smart-tabs
Step 2:

Ensure you are using routing as this directive works hand in hand with Agnular's Router.

import { NgSmartTabsModule } from 'ng-smart-tabs';

@NgModule({
  imports: [
    NgSmartTabsModule,
  ],
})
Step 3:
<a ng-smart-tab>{{YOUR_TEXT}}</a>
AttributeDefaultTpe
lineColor'#EF476F'string
lineThickness'1px'string
lineBorderRadius'0px'string
isFollowLineInvisiblefalseboolean
activeOnUrlMatchnullstring
underlineSidePadding0number
horizontalChangeSpeed'1'string
verticalChangeSpeed'1'string
opacityChangeSpeed'1.25'string
widthChangeSpeed'0.35s'string
zIndex1number

For example:

<a ng-smart-tab
   activeOnUrlMatch="/path">{{YOUR_TEXT}}</a>
<!-- The matching alogithim is a basic javascipt .contains()
 method and priorities direct matches. Thus only provide
 what is unique for that url/journey. -->
 
<a ng-smart-tab
   activeOnUrlMatch="/path/">{{YOUR_TEXT}}</a>
<a ng-smart-tab
   opacityChangeSpeed="2.35">{{YOUR_TEXT}}</a>
<a ng-smart-tab
   lineColor="#eee">{{YOUR_TEXT}}</a>

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago