Questions tagged [modal]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
3answers
8k views

How to close a modal in Magento 2

I have a modal created when user clicks on Add to Cart button and there are couple of products that are shown in that modal and their corresponding Add to Cart buttons. Now I want to close the Modal ...
7
votes
3answers
9k views

Set custom class for Modal popup Magento 2

I have different popups and each popup has different styles, Anyone know how I can restyle each Modal by adding custom class or something. Here one of my modal popup code: <script type="text/...
3
votes
2answers
2k views

Modals - How to specify custom template for modal

How can I specify an custom template for an modal? I tried to specify the type and customTemplate, but no luck. The template file is called modal-gallery.html and is placed on the same path as the ...
11
votes
1answer
2k views

Component vs Widget

In Magento 2 what is the difference between a component and a widget? For example there is a modal component and a modal widget, they both appear to do the same thing. Component The Modal UI component ...
20
votes
5answers
49k views

how to create a form popup-modal in magento2

I am new to magento2. i'm trying to create a popup-modal for my new form. I have created a popup which works fine but unable to create a modal. Following is the code for popup which loads on page ...

1
2