Home > Web Front-end > JS Tutorial > Extjs4 message box removes the close button (similar to Ext.Msg.alert)_extjs

Extjs4 message box removes the close button (similar to Ext.Msg.alert)_extjs

WBOY
Release: 2016-05-16 17:38:21
Original
1505 people have browsed it

The effect is as shown in the figure, similar to Ext.Msg.alert(); but there is no close button
Extjs4 message box removes the close button (similar to Ext.Msg.alert)_extjs
Due to the close button in the Extjs4 message box, the callback function is not executed. After clicking the close button, the window is closed directly.
The implementation code is as follows:

Copy code The code is as follows:

Ext.Msg.show({
title : 'System prompt',
msg : 'Extjs4 removes the close button in the upper right corner of the prompt box',
buttons: Ext.Msg.OK,
fn: showResult,
closable: false
});
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