We’re rewarding the question askers & reputations are being recalculated! Read more.

New answers tagged

0

As refereed by @MichaelHa Try this Code: <div id="popup-modal"> <h1> Hi I'm here.... </h1> </div> <script> require( [ 'jquery', 'Magento_Ui/js/modal/modal' ], function( $, modal ) { var options = { type: 'popup', ...


2

Hi Hardik you have solved this problem using below ways 1) By putting your model code inside $( document ).ready() 2) Check the length of your div whether you declared div is available or not. Try the below code. require( [ 'jquery', 'Magento_Ui/js/modal/modal', 'owlslider' ], function( $, modal ) { ...


0

Yes bootstrap modal supported by magento 2. <button type="button" class="action" data-trigger="trigger"> <span data-bind="i18n: 'Click Here'"></span> </button> <div data-bind="mageInit: { 'Magento_Ui/js/modal/modal':{ 'type': 'popup', 'title': 'Popup title', 'trigger': '[data-trigger=...


Top 50 recent answers are included