Yii-custom deletion confirmation dialog box (zyd). Simple and stylish. It is suitable for cool people. Do not miss out on fashion. I hope this article will help you with your knowledge.
1. Link
The Code is as follows:
'C _ 06c', 'onclick' => 'Return art_del_confirm ("/company/msglog/delete/id /'. $ data-> zml_id. '"," Are you sure you want to delete this message? ") ')?>
2. jq
The Code is a
Is my design philosophy
The following is the specific js Code.
1. First, define several user-defined functions.
Code
Copy codeThe Code is as follows: // you can determine whether an array is used.
Function isArray (v)
{
Return v typeof v. length = 'number' typeof v. splice = 'function ';
}
// Create Element
Function createEle (tagName)
{
Return document. createElement (tagName );
}
// Add a child element to the body
Function appChild (eleName)
{
Return document. body. appendChild (eleName );
There are five types of dialogs in Android: The General Dialog, the list dialog, the radio button dialog, the Multi-Select button dialog, and the Customize dialog box.In the actual development, with the system
Android's own alertdialog,progressdialog,datepickerdialog,timepickerdialog can be used for simple dialog box display. You can use some custom dialog boxes when you still have these dialog boxes that don't meet your application's needs. There are several ways to implement a custom
(Www.bkjia.com) Tutorial HTML page pop-up custom dialog box and jump to the page in two ways (using JavaScript)
Method 1 system API method:Call window. showModalDialog to open the dialog box with the custom page as the content. Based on the returned value, jump to the specified page through window. location. href. For
Web|web Service |web Server | dialog | Controls often see problems like this in the forums: "... How to click the Delete button to pop up a confirmation delete dialog box.
Let's write one of these custom Web server controls ourselves!
Ideas are as follows:
Inheriting System.Web.UI.WebControls.Button controls
Add an attribute "Confirmmessage" to indicate the m
Android implements the dialog box rounded corner Function
Android implements the custom dialog rounded corner Function
The customer has just drawn a UI for the company's Android project. The requirements are as follows:
The pop
Turn from: Use of the android dialog boxA dialog box is usually a small window that is displayed before the current activity. The following activity loses focus and the dialog box above receives the user's interaction information. dialog boxes are often used as hints and as
, saves memory and provides system performance.
Dialog is usually a small form in front of the activity. The activity loses focus, and the dialog interacts with the user. Then, it determines how to run the branch based on the user's choice or input program. There are several types of dialog in Android:
Alertdialog: a
dialog box content to be a multiple-selection list item.
Setadapter (): Sets the dialog box content to be a custom list item.
Setview (): Set dialog box content to Custom view.
Here are a few examples to illustrate the use of alertdialog.
1, the
In Android development, we often need to pop up some dialogs on the android interface, such as asking users or asking users to choose. These functions are called the android dialog box. During the process of using Android, I summarized seven types of
Is my design philosophyThe following is the specific js Code.1. First, define several user-defined functions.CodeCopy codeThe Code is as follows:// Determine whether it is an arrayFunction isArray (v){Return v typeof v. length = 'number' typeof v. splice = 'function ';}// Create ElementFunction createEle (tagName){Return document. createElement (tagName );}// Add a child element to the bodyFunction appChild (eleName){Return document. body. appendChild (eleName );}// Remove the child element fr
:?
12345678
new AlertDialog.Builder(this).setTitle("单选框").setIcon( android.R.drawable.ic_dialog_info).setSingleChoiceItems( new String[] { "Item1", "Item2" }, 0, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); } }).setNegativeButton("取消", null).show();
6. Information content is a set of simple list itemsThe method code to create the
Disclaimer: This article is translated from Guide/topics/UI/dialogs.html In the android SDK documentation.
A dialog is usually a small window in front of the current activity. When a dialog is displayed, the activity partially covered by the dialog will lose the focus, and all user operations will be handled by the
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.