0.0.2 • Published 5 years ago

@ciri/ngx-sticky v0.0.2

Weekly downloads
3
License
-
Repository
-
Last release
5 years ago

NgxSticky

An angular sticky component.

development environment: angular 8.2.14

šŸ‘‰ Demo

Install

npm i @ciri/ngx-sticky

Quick Start

Add it to your module:

import { StickyModule } from '@ciri/ngx-sticky'

@NgModule({
  // ...
  imports: [
    // ...
    StickyModule
  ],
})

Add to view:

<ngx-sticky [offsetTop]="0">hello world</ngx-sticky>

Inputs

NameTypeDefaultDescription
offsetTopnumber0Offset top
zIndexnumber1Equivalent to css z-index

Outputs

EventDescriptionReturn value
changeTriggered when state changestate