Analysis of the problem that the shrinking layer in easyi-layout cannot display the title:
Set the panel to initialize in easyi-layout to be foldable, and then you find that the title and icon are not available
Well, there is a blank on the result list. If there is a problem, you have to solve it. After checking the information online, I decided to modify jquery.easyui.min.js
Version: jQuery EasyUI 1.4.1
There is a _39d method on line 5105, where two variables _Cstitle are set, and the code added to the _CsIcon is as follows:
var _Cstitle;var _closedTitle = p.panel("options").title;if(_closedTitle){_Cstitle = _closedTitle;} else{_Cstitle = '';}In this way, we get a title variable, and the icon can be obtained in the same way.
Next, just set the title attribute of the panel in the next method (line number 5162) and the iconCls attribute to the variable defined above will be OK ~/()/~
p.panel($.extend({}, $.fn.layout.paneldefaults, { cls: ("layout-expand layout-expand-" + dir), title: <span style="color: rgb(255, 0, 0);">_Cstitle</span>, iconCls: <span style="color: rgb(255, 0, 0);">_CsIcon</span>, closed: true, minWidth: 0, minHeight: 0, doSize: false, tools: [{ iconCls: icon, handler: function () { _3ad(_39e, _39f); return false;} }]}));That's it~~
The above content is the solution that the shrinking layer in easyui-layout cannot display the title. I hope it will be helpful to everyone!