0.2.5 • Published 10 months ago

@insite/overlay--panels v0.2.5

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

@insite/OverlayPanels.js

Construit un menu en overlay (via Overlay.js extends) et transforme les menus drupal qu'il contient en menu à panneaux coulissants à profondeur infinie


Installation

  • Via npm :
yarn add @insite/overlay-panels

  • @param {InnerHTML} content
  • @param {Object} options
    • id: 'overlay--menu'
    • ariaLabel: 'Navigation'
    • role: 'navigation'
    • closeOnOverlayClick: false
    • destination: 'body'
    • buttonTag: 'button'
    • buttonTexts: 'Ouvrir', 'Fermer'
    • buttonDestination: '.region--header'
    • closeButtonText: false
    • transitionType: 'left-slide'
    • viewportProportion: 100
    • freezeScroll: true
    • titlePanel : false
    • titlePanelStatic : "Retour"
    • panelsSelector: 'nav'
    • backHome: false

Usage :

new OverlayPanels(settings.mobile_menu, {
  destination: destination,
  ariaLabel: 'Navigation principale',
  id: 'overlay--menu',
  transitionType: 'left-slide',
  buttonDestination: '.region--header',
  titlePanel: true,
  closeOnOverlayClick: true,
  viewportProportion: 60,
  closeButtonText: "Fermer",
  buttonTexts: ['Ouvrir le menu', 'Fermer le menu'],
  titlePanel: true,
  closeOnOverlayClick: true,
  viewportProportion: 80,
  closeButtonText: false,
  buttonTexts: ['Ouvrir le menu', 'Fermer le menu']
});
0.2.5

10 months ago

0.2.1

12 months ago

0.2.0

12 months ago

0.1.8

12 months ago

0.1.7

12 months ago

0.1.9

12 months ago

0.2.3

12 months ago

0.2.2

12 months ago

0.1.6

12 months ago

0.2.4

12 months ago

0.1.5

12 months ago

0.1.0

1 year ago

0.0.9

1 year ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago