New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Treeview event not working metro 4 #1143
Comments
create pen on codepen.io with your problem code |
Please provide the link i am new to frontend developing |
codepen.io |
Metro 4 template pen |
the above link provides a nice online compiler environment. but where to find the solution for my problem. |
Can you provide a simple treeview example tutorials in metro 4 |
Yes, I have executed the code provided in the link you have been provided above. but the result is not fine. please refer the image attached with the comment. |
https://metroui.org.ua/intro.html Jquery required |
Ok i tried. But the issue does not solved. added <script src="Scripts/jquery-3.3.1.min.js"></script> |
https://codepen.io/olton/pen/GBNeGo code from your file |
Thank you. i placed the javascript ref first and then metro ref in the next line. it works! |
How to call data-on-node-click in metro 4. some code example for js function |
Please read the doc on https://metroui.org.ua For events: https://metroui.org.ua/events.html |
Thank you I have referred the above links and implemented how to get the which node has been clicked from the js function. As i am new to metro and javascript there are less sources available on the net for metro. so it is little to harder for me to get things done. |
arguments[0] - node, arguments[1] - treeview
|
Thank You |
The below code is for metro 3 and working fine. Not working in metro 4 because of backward compatibility issues. Please guide me to work with treeview in metro 4.
html.txt
Javascript
bankingQ.events.on(document, 'treeNodeToggled', 'contextItem', function (e, expanded) {
The text was updated successfully, but these errors were encountered: