Description:
Simple to use (Angular) component for organizing your content and UI layout.
INSTALLATION:
Using NPM:
npm install --save sdk-tabs
CONFIGURATION:
To configure the sdk-tabs
for your application, add the following lines to your app.module.ts file:
import { SDKTabsModule } from 'sdk-tabs';
@NgModule({
imports: [
SDKTabsModule
]
})
export class AppModule { }
USAGE:
<sdk-tabs [tabs]="tabs"></sdk-tabs>
<sdk-tabs
[share]=true
fontFamily="Courier New"
fontColor="white"
tabColor="green"
tabBorderColor="black"
activeFontColor="green"
activeTabColor="white"
height="100px"
[tabs]="tabs">
</sdk-tabs>
import { Tab } from 'sdk-tabs';
public tabs: Tab[] = [
{
title: "Introduction",
type: <any>IntrodutionTabComponent,
inputs: {
"title": "Introducing TABS! The easiest way to organize your layout."
},
outputs: {}
},
{
title: "The Basics",
type: <any>TheBasicsTabComponent,
inputs: {
"title": "The Basics - A simple out-of-the-box design."
},
outputs: {}
},
{
title: "Advanced",
type: <any>AdvancedTabComponent,
inputs: {
"title": "Advanced Options and Setup."
},
outputs: {}
},
];
List of properties:
tabs: Tab[] = [];
activeTab: Tab | undefined;
fontFamily: string = "";
fontColor: string = "";
tabColor: string = "";
tabBorderColor: string = "";
activeTabColor: string = "";
activeFontColor: string = "";
height: string = "";
share: boolean = false;
urlParams: string = "";
tabChangedEvent: EventEmitter<{ from: any, to: any }> = new EventEmitter();
Properties for Tab
type:
Tab {
title: string;
type?: Type<any>;
inputs?: any;
outputs?: any
}