Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@logo-software/tabs

Package Overview
Dependencies
Maintainers
9
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@logo-software/tabs

Tabs organize content into separate views where only one view can be visible at a time.

  • 11.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
9
Created
Source

Tabs Module

Tabs are organized content into separate views where only one view can be visible at a time. Tabs are used to quickly navigate between views within the same context. All tabs have own router.

Click here for demo

Installation

All public NPM packages of Logo Software is at https://www.npmjs.com/~logofe. To install Tabs Module:

$ npm set registry https://registry.npmjs.org/
$ npm install @logo-software/tabs -s

Then add TabsModule to @NgModule imports section

app.module.ts

@NgModule({
  imports: [TabsModule],
})
export class AppModule {
}

Tab(s) Component

TabsComponent contains the TabComponent list in its content. Just add <logo-tab> into your <logo-tabs>. Below code is the full sample usage of the tabs component. Add the below code to your code stack and give initializer parameters.

app.component.ts


<logo-tabs
 activeTab=0
 class="tab-class-names-goes-here"
 routing="true"
 showPrevNext="false"
 (change)="yourChangeTrigger($event)"
 (tabEvent)="yourTabEvent($event)"
>
 <logo-tab
   (init)="tabInit($event)"
   [params]="{id: '44-133'}"
   [route]="'route/to/some/ref'"
   [title]="'Free'"
   [isDisabled]="false"
   [isHidden]="false"
 >
   <h1>Content goes here</h1>
   <p>Tab one content detail's goes here</p>
 </logo-tab>
 <logo-tab title="two">tab content two</logo-tab>
</logo-tabs>
Alignment

Add [left] or [right] property to any element to set position's on the navbar. If 'showPrevNext' option is setted as true, this feature won't work. For example:

app.component.html


<logo-tabs...>
 <logo-tab title="one">Tab content one</logo-tab>
 <logo-tab title="two">Tab content two</logo-tab>
 <div right>right text or some buttons</div>
 <div left>left text or some buttons</div>
</logo-tabs>

Tab Component

Tab component determines Tabs title and its content. Tab's title attribute will be the display text of the tab. And its child DOM elements will be the content of the tabs. Add the below code to your code stack and give initializer parameters.

app.component.ts


<logo-tab
  (init)="tabInit($event)"
  [params]="{id: 'user-id-1'}"
  [route]="'logo/table-sample/table-showcase/table-showcase.component'"
  [title]="'Two'"
  [isDisabled]="false"
  [isHidden]="false"
>
  <div>contents</div>
</logo-tab>

For API details, please visit http://design.logo.com.tr/#/docs/components/components-overview

Keywords

FAQs

Package last updated on 14 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc