How to troubleshoot the Easyui tree menu click Text Cannot expand menu issues

Source: Internet
Author: User

Recently encountered a problem: Click the text in the Easyui tree menu, the menu cannot expand, only click the plus sign to expand, only effect. How to solve this problem? Here's how:


1 Find the location of the code you want to add, such as the settings for the menu in the Jquery.easyUI.min.js file (depending on where your project is set up)


2 Locate the Onselect function, and then add the following code:

Onselect:function (node) {$ (this). Tree (node.state = = = ' closed '?) ' Expand ': ' Collapse ', node.target);}

3 then refresh the browser to re-test, done.

This article from "casually write" blog, reproduced please contact the author!

How to troubleshoot the Easyui tree menu click Text Cannot expand menu issues

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.