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

@aloysius-software-factory/mat-tab-nav-gesture

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aloysius-software-factory/mat-tab-nav-gesture

This library provide a simple directive to enable gesture behaviors for the MatTabGroup component on top of @angular/material library.

  • 19.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
23
decreased by-90.76%
Maintainers
0
Weekly downloads
 
Created
Source

Angular Material TabGroup Gesture

This library provide a simple directive to enable gesture behaviors for the MatTabGroup component on top of @angular/material library.

####Gesture features :

  • Scroll tab header with your finger IF there are too much tabs to show it all on your screen
  • Swipe between tabs by swiping the tab content from left to right (or right to left)

Getting started

Install the library from npm

npm i --save @aloysius-software-factory/mat-tab-nav-gesture

Next, import the MatTabGroupGestureModule in your app's module

app.module.ts

import { MatTabNavGestureModule } from 'mat-tab-group-gesture';
...
@NgModule({
  ...
  imports: [
    ...
    MatTabNavGestureModule,
  ],
  ...
})
export class AppModule { }

After that, you will be able to add gesture directive to mat-tab-group :

<mat-tab-group matTabNavGesture [swipeLimitWidth]="80"> ... </mat-tab-group>

API Documentation

MatTabGroupGesture

Directive responsible for managing gesture behaviors

Selector: matTabNavGesture

Properties
NameDefault valueDescription
swipeLimitWidth80The minimum length of the "swipe" gesture to trigger the tabs navigation

FAQs

Package last updated on 25 Nov 2024

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