Home > Web Front-end > JS Tutorial > body text

Extjs Ext.MessageBox.confirm confirmation dialog box detailed explanation_extjs

WBOY
Release: 2016-05-16 18:30:32
Original
1216 people have browsed it
Detailed explanation of Ext.MessageBox.confirm()

Displays a confirmation dialog box, used to replace the JavaScript standard confirm() method, with two buttons "Yes" and "No" if It provides a callback function, which will be called after a button is clicked (including the push button in the upper right corner), and the id of the clicked button will be passed to the callback function as the only parameter.
Call format:
confirm(String title,String msg,[function fn],[Object scope])
Parameter description:
Ext.MessageBox.alert();//Related content
Return value:
Ext.MessageBox
Code example:
Copy code The code is as follows:




The usage of Ext.MessageBox.confirm is similar to alert. The confirmation dialog box is also executed asynchronously and will not cause blocking. Therefore, the code that can only be executed after the user confirms also needs to be placed in the callback function. . The id passed in the callback function is the only way to distinguish the user's selection, and different operations are performed by judging this parameter.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template