0.0.6 • Published 5 years ago

ng-fy-tabs v0.0.6

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

ng-fy-tabs

A module for tabs component with component ref without routing Click for demo

Install

npm install ng-fy-tabs

Usage

import { NgFyTabsModule } from 'ng-fy-tabs';

add to module imports

NgModule({
...
imports: [
  NgFyTabsModule
]
...
})

add to html file

<ng-fy-tabs></ng-fy-tabs>

Before use a component add to entryComponents

@NgModule({
...
entryComponents:[
	ExampleTabComponent
]
...
})

Inputs

NameTypeDefaultDescription
tabsngFyTabsInterface[][]all tabs object

Outputs

NameTypeDescription
tabChangestringFired when active tab change

ngFyTabsInterface

NameTypeDefaultOptionalReadonlyDescription
idstring or numberfalsetruetab id for identification
titlestringfalsefalsetab title
canRefreshbooleanfalsetruefalsetab refresh from zero
canClosebooleantruetruefalseclose tab
componentComponentfalsetrueComponent ref for tab content
componentRefComponentRefundefinedtruefalseDo not set or change this one for me
data{ key: string, value: string }[]truefalsecomponent attr value
loadingbooleanfalsetruefalseif loading component set true

Changing Some Values

if u want to change somethink change it, its gone be fine but if u gona remove one of data set undefined i'll remove it

0.0.6

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago