How to create a new xtype containing html5smartimage
HI,
I am trying to create a new xtype that contains a html5smartimage. I have used following code in new xtype clientlib inside initComponent method.
this.slide = new CQ.html5.form.SmartImage({
title:"Image",
ddGroups: ["media"],
ddAccept: ["image/.*"],
border: true,
height: 250,
disableZoom: true,
allowUpload: false,
fileNameParameter:"./fileName",
fileReferenceParameter:"./fileReference",
cropParameter:"./imageCrop",
mapParameter:"./imageMap",
requestSuffix:".img.png",
rotateParameter:"./imageRotate",
uploadUrl:"/tmp/upload/*",
listeners: {
change: {
scope:this,
fn:this.updateHidden
}
}
});
this.add(this.slide);
Once I open the dialog box I am able to see Image place holder. But I am not able add or drag and drop any images from content finder. Please refer to below screenshot.
[img]Capture.PNG[/img]
How to fix this issue?
Thanks,
Sai