Remodal

Component ID

2846268

Component name

Remodal

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

95

Component created

Component changed

Component body

This is an API module that integrates remodal JavaScript library with Drupal Ajax API. It allows to open content in modal overlay using remodal.js.

Use'data-dialog-type' => 'remodal'for rendering ajax links as you would do for drupal modal dialogs ('data-dialog-type' => 'modal'), or useOpenRemodalCommand()instead of coreOpenModalDialogCommand()for building custom ajax response handlers.
Also you can set custom options as you would do for drupal dialogs (e.g.'data-dialog-options' => ['modifier' => 'custom-class']to add a custom class to remodal overlay).

Installation

  1. enable the module
  2. extract the contents of https://github.com/VodkaBears/Remodal/archive/master.zip to /libraries/remodal directory so that the path to the files would be /libraries/remodal/dist

There is a usage example in src/Controller directory. Check /remodal/dev-page page for demo.