GitHub

Sticky

Sticky tracks when a sticky element becomes pinned so it can be styled differently.

Directives

DaffStickyTrackerDirective

import { DaffStickyTrackerDirective } from '@daffodil/design'

Tracks when a sticky element becomes pinned so it can be styled differently.

@Directive()
class DaffStickyTrackerDirective implements OnDestroy {
  @Input() sticky: "top" | "bottom" = undefined

  ngOnDestroy(): void
}

Inputs

sticky
"top" | "bottom"
Defaultundefined
Description

The edge of the scroll container the element sticks to.

() Methods

ngOnDestroy
void