Easyui problem summary

Source: Internet
Author: User
Question 1: how to hide the shrink arrow on the easyui West panel?

Effect:



Practice:

<Div data-Options ="Region: 'west '"Style = "width:200px; ">

<Div class ="Easyui-panel"Data-Options ="Title :'Function navigation', Border: false, fit: true">

<Div class ="Easyui-accordion"Data-Options ="Fit: True, border: false">

<Div Title ="System Menu"Data-Options ="Iconcls: 'icon-save '">

<Ul class ="Easyui-tree"Data-Options =

"Url: '$ {pagecontext. Request. contextpath}/menuaction! Alltreenode. action ',

Parentfield: 'pid ', lines: True, onclick: function (node ){

VaR url ='$ {Pagecontext. Request. contextpath}'+ Node. Attributes. url;

Addtab ({Title: node. Text, href: URL });}">

</Ul>

</Div>

</Div>

</Div>

</Div>


1.Not SpecifiedWestPanelTitleAttribute to get the effect of the previous graph:

<Div data-Options ="Region: 'west '"Style = "width:200px; "> </Div>

 

2.InWestAddPanelPanel implementationWestThe similar interface of the panel, which hides the Arrow:TitleAttributePanelWrite it down;

Border: falseNarrow the border,Fit: TrueMake the Panel adaptive window change. The resulting interface is as follows:

<Div data-Options ="Region: 'west '"Style = "width:200px; ">

<Div class ="Easyui-panel"Data-Options ="Title :'Function navigation', Border: false, fit: true">

</Div>

</Div>

Layout small extension: sets whether to display the region contraction button.

Http://www.easyui.info/archives/1279.html

 

Question 2: How can I make the layout panel lose the title display bar?

Pending diagram:



Practice:

<Div data-Options ="Region: 'east '"Style = "height:60px; "> </Div>

If no panel is specifiedTitleAttribute;

 

Question 3: How to display a filedset?

Effect

 

Practice: Use<Fieldset> label

<Form ID ="User_login_loginform"Method ="Post">

<Fieldset>

<Legend> User Logon </legend>

<Table>

<Tr> </Th> User Name </Th> </TD> <input name ="Name"Class ="Easyui-validatebox"

Data-Options ="Required: True, missingmessage :'Username is required'"/> </> TD> </tr>

<Tr> </Th> password <TH> <TD> <input name ="PWD"Type ="Password"Class ="Easyui-validatebox"

Data-Options ="Required: True, missingmessage :'Password is required'"/> </TD> </tr>

</Table>

</Fieldset>

</Form>

Question 4: How does a tree node load a page in the center through the href attribute of the panel?

Note: The page content introduced by the href attribute of the Panel can only be the content in the <body> label of the JSP page. Therefore, do not write other labels when introducing the page and directly write the required code snippets. Write JavaScript directly.

Question 5: how to draw a dotted line?

As follows:

 

 

Code:

<Div style = "width: pixel PX; border-top: 1px silverdashed; border-color: #99bbe8;"> </div>

Question 6: How to dynamically change the title attribute value in data-options on the center panel?

Effect:


Code:

$ ('# Index_layout'). layout ('panel ', 'center'). Panel ('settitle', 'current location "' + options. Title );

 

 

Question 7: How to Make ComboBox highly adaptive:

Panelheight: 'auto'

 

Question 8: Get the data-option width:

$ ('# Index_layout'). layout ('panel ', 'east'). Panel ("options"). width;

Easyui problem summary

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.