FactoryFor more information, see the link at the end of the page.
11. Copy the Scalable panel control in the XP Resource Manager.
[Translation]Collapsible panel control
This control has functions similar to the Scalable panel on the left of Windows XP resource browser.
[Introduction]
This control can contain multiple views. When you click the title bar of a panel, it can automatically scale the following panel. You can set its own title bar icon an
// we will analyze it in detail later.
Because there is too much content, let's look at an example first.1. formpanel fieldset Application// Rewrite the previous code to the items attributeItems :[{Xtype: 'fieldset ',Title: 'Personal information ',Collapsible: True,Autoheight: True,Width: 330,Defaults: {width: 150 },Defaulttype: 'textfield ',Items :[{Fieldlabel: 'hobbies ',Name: 'hobby ',Value: 'www .cnblogs.com'},{Xtype: "combo ",Name: 'sex ',Store:
,
Constants. res_failureedit, Ex. Message ));
}
Finally
{
Results. collapsible = false;
}
}
} The entry here belongs to the DTO type.
Components Which is explained below. If this is the first new article, the following code will be executed:
Entries. Update (entry ); The following command is executed:
Public
Static IntCreate (Entry entry)
{
ReturnCreate (entry,Null);
} Static Method, final call
Public
Static IntCreate (Ent
ArticleDirectory
I. Target results
Ii. Direct switch-hide (), show (), toggle ()
3. fade in and fade out-fadein (), fadeout ()
4. Slide and drop-slidedown (), slideup (), slidetoggle ()
I have never mastered the front-end things very well. Recently I took some time to learn jquery. It is really easy to use. It provides some ready-made good things and cross-browser capabilities.
Here we will record several commonly used animation effects through the implementation of a
provides another example: Another example to lock rows with radios.
6. Vertical scrolling tables
If you have a large amount of table data, but you do not have much space to display it, this may be a good method: a pure CSS table with a fixed title and footer, and the scrolling content.
7. replicating a tree table
This is a tree shape table designed with HTML and CSS.
8. paginate, sort and search a table with Ajax and rails
This table provides a dynamic interface without ref
From the horizontal line in the panel, we can clearly see that the container of the tree panel does not use fit layout, which makes the tree panel not fill the entire layout, but is displayed according to its own size.
Actual code:
VaR mainaccirdion = new Ext. panel ({ID: "mainaccirdion", Region: 'west', split: True, layout: 'accordion', collapsible: True, width: 200, layoutconfig: {titlecollapse: false, animate: True, activeontop: true}, items: [{T
VaR grid = new Ext. Grid. gridpanel ({Store // Data SourceCM // Ext. Grid. columnmodelColumns // functions are the same as Ext. Grid. columnmodel. One with CM is enough.Autowidth: TrueWidthTitleBorder: falseColumnlines: True,Renderto // display the ID of the DIV tagAnimcollapse: false // true indicates that an animation is attached to the Panel closure process (true by default, when Ext. FX class is available ).Collapsible: True, // true indicates tha
Implement Grid and uigrid in easy ui JS
There are two ways to implement the grid of easy ui:
1. It is implemented on the webpage (I don't think it is more convenient to implement operations in js)
2. Implement in JS
Let's talk about how to implement GRID in JS.
The first step is to reference the JS of easy ui.
Okay, the following is the HTML code.
You only need to define an ID for a table
Well, let's start to define the grif Implementation Method in JS.
Var lastIndex; function datagridload
Implementation of easy Ui + Jquery pop-up window, uijquery
There are many pop-up windows for easy Ui
I just want to make it easy to implement.
First, reference the easy ui JS
Similarly, his style CSS files must be referenced.
The following is a DIV defined in the pop-up window.
Note that the div style must be hidden.
Function openwindow (id, titlename, vwidth, vheight) {$ ('#' + id ). window ({width: vwidth, height: vheight, modal: true, title: titlename,
EasyUI-Batch Delete of DataGrid, easyui-datagrid
A brief introduction includes the following knowledge points:
1. checkbox, multiple options
2. Pass the value to the background at the front end. I use String concatenation to split the value at the background.
3. Underlying Implementation of batch Deletion
Foreground view
$ (Function () {$ ('# dg '). datagrid ({title: 'query result', iconCls: 'icon-view', // icon width: 100, height: 'auto', nowrap: false, striped: true, border: true,
Easyui parser and easyui parser
When writing code, it is found that if the html code is not written on the page, but the corresponding component is added when a method is executed after the page is loaded, after being added, easyui will not initialize this component for you. At this time, you must manually initialize this component,
For example, in the chat window I wrote below, click the initialization window during the chat, which needs to be used at this time.
$. Parser. parse ('# CC'); // pa
After reading books for a few days, I checked the API. I can't remember much in my mind, so it's better to learn from it. Try to start writing:
First, start to build an interface framework.
The first step is to reference ExtJs related files:
Define an Ext. Viewport:
Set in items attributes:
Header:
Copy codeThe Code is as follows :{
Region: 'north ',
Html: 'AutoHeight: false,
Border: false,
Margins: '0 0 5 0'
}
Management tree on the left:Copy codeThe Code is as follows :{Region: 'west ',
strut2 is as follows:
Menus is a list JsonMenu has the following attributes:Private String text;Private boolean expanded;Private String id;Private boolean leaf;Private List The format returned by getJsonMenus. do can meet the format requirements of the tree.The js Code is as follows:Copy codeThe Code is as follows: Ext. onReady (function (){SetTimeout (function (){Ext. get ('loading'). remove ();Ext. getDom ('header'). style. visibility = 'visable ';Var vp = new Ext. Viewport ({Layout: 'border
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.