. show ();}Function toBack (){Mygroup. sendToBack (mygroup. getActive ());}Function hideAll (){Mygroup. hideAll ();}Ext. oReay (Function (){Mygroup = new Ext. WindowGroup ();Ext. get ("btn"). on ("click", newWin );Ext. get ("btnToBack"). on ("click", toBack );Ext. get ("btnH
toBack (){Mygroup. sendToBack (mygroup. getActive ());}Function hideAll (){Mygroup. hideAll ();}Ext. oReay (Function (){Mygroup = new Ext. WindowGroup ();Ext. get ("btn"). on ("click", newWin );Ext. get ("btnToBack"). on ("click", toBack );Ext. get ("btnHide"). on ("click",
As we all know, it was a little difficult to get started with extjs, so I prepared this series after getting started.Article.I personally think that using extjs as the background is very good and the layout is perfect!1.Ext. MessageBox. Alert ()MethodThere are four parameters. For the sake of simplicity, we mainly introduce the first three parameters:Alert (Title,MSG,Function (){})Title, MSG are mandatory p
of use. At this point, extjs performance is not so good, which is also an important reason why it has not become the webui standard. Second, the implementation is perfect and powerful, and extjs has basically done so. Of course! Don't forget this sentence: "No, it's better ". It is hoped that extjs fans will learn more about it and learn more about it, so that it can play a role in more projects.
Okay! Next, let me discuss Ext.
1. Ext. MessageBox. alert () methodThere are four parameters: alert (title, msg, function () {}, this)Title, msg are mandatory parameters, function is optional parameters, triggered after the pop-up window is closed, you can input the id of the button to be clicked, the fourth parameter scope: refers to the scope of the callback function.
Ext. MessageBox tool class introduction, research source code to find more things. Note: 1. Ext. MessageBox is a tool class inherited from the object.
2. In essence, it is only a layer of the current page.
The example is as follows:
The Code is as follows:
The configuration is more convenient than the previous method.There are many parameters. Here we will list the most common configuration parameters:1
. Animel: the animation effect when the dialog box is displayed or closed. For example, if it is set to "id1", the animation is displayed and generated from id1, and the contraction is opposite.
2
. Buttons: the buttons in the pop-up box are mainly set as follows: E
following three aspects. 1. Implementation Method: the information prompt dialog box provided by standard Javascript is a real pop-up window. Ext. the message prompt dialog box provided by MessageBox is not a real pop-up window. It is only a layer (DIV) displayed on the current page ), therefore, you cannot use a
Copy codeThe Code is as follows:Ext. onReady (function (){Ext. Msg. alert ('hprompt ', 'comma-separated parameter list'); // This method is very common}); :Copy codeThe Code is as follows:Ext. onReady (function (){// Define JSON (configuration object)Var config = {Title: 'hup ',Msg: 'json configuration method, simple'}Ext. Msg. show (config );}); :The above is just a simple
Note: 1. Ext. MessageBox is a tool class inherited from the object.
2. In essence, it is only a layer of the current page.
The example is as follows:CopyCodeThe Code is as follows: Ext. onready (function (){Ext. MessageBox. Al
This article mainly introduces the messagebox example of pyqt4. For more information, see
The code is as follows:
# Coding = UTF-8# Dialog boxImport sysFrom PyQt4 import QtGui, QtCoreClass Window (QtGui. QWidget ):Def _ init _ (self ):Super (Window, self). _ init __()Self. setWindowTitle ("hello ")Self. resize (500,5
name, because dynamic loading will automatically find the directory based on the class name and load the file. The name after the last decimal point in the class name is the file name, for example, all types of Logon Windows are called Ext. ux. login, while login is the file name.
If you want to use ExtJS prompts in the script, you can use Ext. copy the js file
Look at the following code:
Copy Code code as follows:
var i=0;
function Newwin () {
var win = new Ext.window ({
Title: "Window" +i++,
width:400,
HEIGHT:300,
Maximizable:true
});
Win.show ();
}
Ext.onready (
function () {
Ext.get ("Btn"). On ("click", Newwin);
}
);
HTML content in the page:
Execute the above code, when clicked button "New Window", will dis
the full name of the class, because dynamic loading automatically finds the directory and loads the file according to the class name, and the name after the last decimal point in the class name is the filename, for example, the class of the login window is all called Ext.ux.Login, and login is the filename.
If you want to use the EXTJS hint in your script, copy the Ext.js file from the resource bundle th
This article provides an example of how ext receives json data from an action. For more information about how to receive json data from an action, see ext.
The Code is as follows:
Ext. Ajax. request ({Method: 'post', // Request methodParams: {dagl_code: dagl_code },Url: lcwPath + "/daxt/lcgl.shtml? Method = getJg
For extjs, in order to take care of beginners who are not yet getting started, I would like to give a tip that a teacher in the online *** video of a website has recorded a video about extjs introduction, the environment may be different, but the principle and usage are the same. It is definitely worth seeing (if you want to get started). I hope there is no advertisement.Main Site: *** online videoExtjs introduction and application example: extjs vide
For extjs, in order to take care of beginners who are not yet getting started, I would like to remind you that a video of extjs's getting started was recorded by a teacher on the langxi video online website, the environment may be different, but the principle and usage are the same. It is definitely worth seeing (if you want to get started). I hope there is no advertisement.Main Site: langxi video onlineExtjs introduction and application example: extj
/** * Example Description: By clicking on a button to open a window, you need to avoid repeated open/Ext.onready (function () {///Get the DOM object that was wrapped through EXT, the original object is Btm.dom alert (btn.dom.value
)//jquery code var BTN = $ (' #btn '), btn[0].value var btn = ext.get ("btn"); Method one uses modal properties Btn.on ("cli
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.