Closed (fixed)
Project:
Adaptive Theme 2.0
Version:
1.4.16
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2023 at 04:06 UTC
Updated:
9 Apr 2024 at 14:37 UTC
Jump to comment: Most recent
Comments
Comment #2
glennnz commentedComment #3
viren18febs commentedHi glennnz,
You can use the modal classes for predefined size of module as per requirements, these are some of them.
.modal-sm, .modal-lg, .modal-xl.
if you want to fully responsive, then you need to use media queries in CSS file.
Comment #4
viren18febs commentedComment #5
glennnz commented@viren18febS
Like this?
<a class="use-ajax" data-dialog-type="modal-xl" href="..........This doesn't work, the link doesn't open, no modal window appears.
Thanks,
Glenn
Comment #6
glennnz commentedComment #7
viren18febs commented@glennnz
You can use this. This is the working example and you can change it as per your requirement..
Comment #8
viren18febs commentedComment #9
viren18febs commentedOr You can define the size of modal as follows.
<p><a href=”/node/3” data-dialog-type=”modal” class=”use-ajax” data-dialog-option={"width":800, "height":500}}>Node 3</a></p>Comment #10
glennnz commented#9 works with a small typo correction, add quotes, thus:
<a href=”/node/3” data-dialog-type=”modal” class=”use-ajax” data-dialog-option="{"width":800, "height":500}">Node 3</a>Comment #11
glennnz commentedComment #13
leanderjccThis wasn't working for me as the attribute should be "data-dialog-options" instead of "data-dialog-option".
Thus, the correct example being:
<a href=”/node/3” data-dialog-type=”modal” class=”use-ajax” data-dialog-options="{"width":800, "height":500}">Node 3</a>As form element: