PDA

View Full Version : Implement Spot light - help needed



renganathan
30 Jun 2012, 1:58 AM
Hi ,

i want to implement spotlight for extjs window popup .

http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/core/spotlight.html

i tried with above example, but its not working




DeviceDetailsWindow = Ext.create('Ext.window.Window',
{
title : "Device Details",
layout : 'fit',
width : 570,
height : 430,
minWidth : 390,
minHeight : 280,
constrain : true,
shadow : true,
items : [deviceDetailsPanel]
});
DeviceDetailsWindow.show();

sword-it
30 Jun 2012, 2:51 AM
Hi renganathan,

You can use ' modal : true ' config to masking background component. For example-




DeviceDetailsWindow = Ext.create('Ext.window.Window',
{
title : "Device Details",
layout : 'fit',
width : 570,
height : 430,
minWidth : 390,
minHeight : 280,
constrain : true,
modal : true,
items : [deviceDetailsPanel]
});

DeviceDetailsWindow.show();
For more Information see http://docs.sencha.com/ext-js/4-1/#!/api/Ext.window.Window-cfg-modal