Socket
Socket
Sign inDemoInstall

@camdh/ion-custom-scrollbar

Package Overview
Dependencies
5
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @camdh/ion-custom-scrollbar

## Installation


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

ion-custom-scrollbar

Installation

# on project root
npm i @camdh/ion-custom-scrollbar
  • npm page: https://www.npmjs.com/package/@camdh/ion-custom-scrollbar

Usage

Import the module on top of your lazy loaded module and add it to the imports array on NgModule.

import { IonCustomScrollbarModule } from 'ion-custom-scrollbar'

@NgModule({
  imports: [
    ...,
    IonCustomScrollbarModule
  ],
  declarations: [...]
})

Configuration

You can pass a configuration object on ion-content using the scrollbar attribute.

keytypedescriptiondefault value
widthnumbertrack width in pixels8
tracknumbertrack opacity0.1
trackHovernumbertrack opacity on hover0.1
thumbnumberthumb opacity0.25
thumbHovernumberthumb opacity on hover0.33
allbooleanapply style on mobile alsofalse

Example

<ion-content [scrollbar]="{width:12,trackHover:0}">
   ...
</ion-content>

Publish

# you just need to run the script
./publish

FAQs

Last updated on 24 Jan 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc