Skip to content

Commit

Permalink
Carga de widget
Browse files Browse the repository at this point in the history
Impementacion de un widget que muestra un POPUP

Mas información de como integrar JS detalladamente -> 15c9d59

Mas información de  WIDGET : https://devdocs.magento.com/guides/v2.4/javascript-dev-guide/widgets/widget-popup-window.html.
  • Loading branch information
PerezContrerasLuis committed Jan 28, 2022
1 parent 15c9d59 commit 839020c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions code/Learning/Js/view/frontend/templates/hello.phtml
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
<div data-mage-init='{"hello": {"message": "You clicked!"}}'>
<div id="clk"> CLICK HERE <div>
</div>


<div>
<a href="#" class="action" title="Open Customer Login"
data-mage-init='{"popupWindow": {
"windowURL": "/customer/account/login",
"windowName": "customer-login",
"width": 400,
"height": 400,
"left": 0,
"top": 0,
"resizable": 1,
"scrollbars": 1,
"status": 1,
"menubar": 1
}}'>
<span>PopupWindow widget</span>
</a>
</div>


0 comments on commit 839020c

Please sign in to comment.