How can I give propertyToRender value in alfresco/lists/views/layouts/Cell widget?

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
nikyinform
Active Member

How can I give propertyToRender value in alfresco/lists/views/layouts/Cell widget?

I am having JSON string, and want to use key value inside table. But I am unable to fetch value from JSON using propertyToRender inside Cell widget.

propertyToRender for Cell widget

2 Replies
afaust
Master

Re: How can I give propertyToRender value in alfresco/lists/views/layouts/Cell widget?

The Cell widget does not support a propertyToRender configuration property. You need to add an instance of alfresco/renderers/Property inside the cell, which can then be setup to render a property value.

nikyinform
Active Member

Re: How can I give propertyToRender value in alfresco/lists/views/layouts/Cell widget?

Thanks Axel for quick reply. I tried your solution in below manner, but it is not working for me.

I have attached the code snippet below, kindly let me know if any changes are required.

widgets: [{
 name: "alfresco/lists/views/layouts/Row",
 config: {
 zebraStriping: true,
 widgets: [
{
 name: "alfresco/lists/views/layouts/Cell",
 config: {
 additionalCssClasses: "mediumpad",
 widgets:{
 name: "alfresco/renderers/Property ",
 config: {
 propertyToRender: "firstName"
 }
 }
 }
}