Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Elxis 5.5 Calypso supports 2 factor authentication login with e-mail or SMS.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
Create a Modal window in Elxis 5.x
« previous
next »
Print
Pages: [
1
]
Author
Topic: Create a Modal window in Elxis 5.x (Read 3243 times)
datahell
Elxis Team
Hero Member
Posts: 10356
Create a Modal window in Elxis 5.x
«
on:
May 13, 2019, 22:03:37 »
This is how you can create modal windows in Elxis 5.x The contents of the window can be anything, a form, a text, or you can load them dynamically via AJAX.
Initialize HTML helper:
$htmlHelper = $elxis->obj('html');
Start modal window:
echo $htmlHelper->startModalWindow('Title here', 'uniquesuffix');
Put anything inside the modal window:
echo '<p>Anything!</p>';
Close the modal window:
echo $htmlHelper->endModalWindow();
That's it!
But how we invoke/display the modal window?
It's very simple. We do so with the
elx5ModalOpen
javascript function with the modal's suffix as input parameter. Example:
<a href="javascript:void(null);" onclick="elx5ModalOpen('uniquesuffix');">Open modal</a>
«
Last Edit: May 13, 2019, 22:10:41 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
Create a Modal window in Elxis 5.x