Extjs MessageBox.

Simple way of showing a message box in ExtJs.


Ext.Msg.Show({
title: 'Some tile for the messagebox',
msg: 'The message to display',
width: 'it can have a width or default one'
butons: 'See what tyoe of buttons available',
icon: 'see the list for the vailable type of icons',
fn: function(){} ' It also have a callback function if one need it.
});

This are the type of buttons available:
Ext.MessageBox.OK
Ext.MessageBox.YES
Ext.MessageBox.NO
Ext.MessageBox.CANCEL

this are the vailable icons
Ext.MessageBox.INFO
Ext.MessageBox.WARNING
Ext.MessageBox.QUESTION
Ext.MessageBox.ERROR

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s