Remodal icon indicating copy to clipboard operation
Remodal copied to clipboard

New Functionality: send data to remodal from

Open nurbol-sarsenbayev opened this issue 6 years ago • 0 comments

Hi, can you make functionality of sending data to opening remodal. It will be helpfull when we have multiple links which opens one remodal and need to identify which link opened remodal

<a href="#" data-remodal-target="modal" data-remodal-source="modal1"> modal1 </a>
<a href="#" data-remodal-target="modal" data-remodal-source="modal2"> modal2 </a>
<a href="#" data-remodal-target="modal" data-remodal-source="modal3"> modal3 </a>
$(document).on('opening', '.remodal', function (e, source) {
  console.log('source);
});

nurbol-sarsenbayev avatar Oct 03 '18 13:10 nurbol-sarsenbayev