cancel
Showing results for 
Search instead for 
Did you mean: 

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

nikyinform
Champ on-the-rise
Champ on-the-rise

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 2

afaust
Legendary Innovator
Legendary Innovator

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
Champ on-the-rise
Champ on-the-rise

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"
 }
 }
 }
}