expander: {
type: "fluid.renderer.condition",
condition: that.showMediumImage(),
trueTree: {
mediumImage: {
decorators: [{
type: "addClass",
classes: that.options.styles.mediumImage
}, {
type: "attrs",
attributes: {
alt: that.options.strings.mediumImage,
src: that.options.recordModel.fields
&& that.options.recordModel.fields.blobs
&& that.options.recordModel.fields.blobs.length > 0 ?
that.options.recordModel.fields.blobs[0].imgMedium : ""
}
}]
},
mediaSnapshot: {
decorators: [{
type: "addClass",
classes: that.options.styles.mediaSnapshot
}]
}
},
falseTree: {
mediaSnapshot: {}
}
}
|