Hi guys,
Running revo 2.1.3 advanced.
xamp running.
I am making some CMPs with MODext and I have a requirement to show a preview of an image in an update form.
I am pre-populating the form fields using this.menu.record.
When the user right-clicks the record it launches my window.
What I want is a field or xtype that lets me set a preview if the modx-combo-browser has a value.
I have tried this: but its blank:
{
fieldLabel: 'Preview'
,name: 'image-preview'
,dataIndex: 'image-preview'
,renderer:
function(value) {
return 'Preview img here please...';
if(value != '')
{
return 'We have an img, show preview';
} else
{
return '<span class="red">No fail...no img!!!</span>';
}
}
}
Any ideas how I might accomplish this?
Thanks in advance
J
[ed. note: jusmeig last edited this post 14 years, 9 months ago.]