I have a created a text field where I need to take emails as input. I want to put each email selected in different background color (making it more user friendly). Is there any way to do this in Ext JS?
Please refer to the id "emailTo' in the code. Thank you
var emailDlg = new Ext.Window(
{
width : 900,
height : 600,
minWidth : 300,
minHeight : 220,
closable : false,
modal : true,
resizable : false,
autoDestroy : true,
title : 'New email notification',
layout : 'fit',
buttonAlign : 'center',
items : [ {
xtype : 'form',
defaultType : 'textfield',
fieldDefaults : {
labelWidth : 60
},
layout : {
type : 'vbox',
align : 'stretch',
pack : 'start'
},
bodyPadding : 5,
border : false,
items : [ {
id : 'emailTo',
fieldLabel : 'To',
id : 'textInput',
name : 'to'
}, {
id : 'emailSubject',
fieldLabel : 'Subject',
name : 'subject'
}, {
id : "msgbody",
autoDestroy : true,
xtype : 'displayfield',
hideLabel : true,
name : 'msg',
flex : 1
} ]
} ],
});
