Hi all
I'm trying to create an xtype that contains an html5smartimage element.
Apart from adding the html5smartimage to a Panel, is there anything else required?
The following is rendered to my dialog, but this doesn't contain the Crop / Resize / Map icons or the placeholder text.
When dropping images from ContentFinder to this area, I get the following error:
CODE
this.newPanel = new CQ.Ext.Panel({
layout: "fit",
border: true,
autoHeight: true,
items: {
xtype: "panel",
layout: "form",
border: false,
autoHeight: true,
defaults: {
labelWidth: 70,
anchor: "100%"
},
items:[
{
xtype: "panel",
border: false,
items: [{
height: 150,
title:"Image",
ddGroups: ["media"],
ddAccept: ["image/.*"],
border: true,
disableZoom: true,
allowUpload: false,
fileNameParameter:"./fileName",
fileReferenceParameter:"./fileReference",
cropParameter:"./imageCrop",
mapParameter:"./imageMap",
requestSuffix:".img.png",
rotateParameter:"./imageRotate",
name:"./file",
uploadUrl:"/tmp/upload/*",
xtype: "html5smartimage"
}]
}
]
}
});