wrve / wn-ajaxpopup-plugin
Plugin to show dynamic popups in frontend themes
Package info
github.com/rubenvanerk/wn-ajaxpopup-plugin
Language:JavaScript
Type:winter-plugin
pkg:composer/wrve/wn-ajaxpopup-plugin
dev-main
2021-06-04 13:35 UTC
This package is auto-updated.
Last update: 2026-03-04 23:46:42 UTC
README
Plugin to show dynamic popups in the frontend. Inspired by an OctoberTrick.
Note: currently only supports Bootstrap 5 modals.
Usage
Add the [ajaxPopup] to your page.
Add the data-popup attribute to the element that triggers the Ajax request:
<button data-request="onYourAjaxHandler" data-popup="yourPopupIdentifier"> Show popup </button>
In your ajax handler reference the popup identifier:
function onYourAjaxHandler() { return [ 'yourPopupIdentifier' => $this->renderPartial('@your-partial'), ]; }