cancel
Showing results for 
Search instead for 
Did you mean: 

How to format string value in aikau widget

janaka1984
Star Contributor
Star Contributor

Hi,

i have used following widget. i need to format display value. can i use string "concat", "replace"... function to change display value here?

{
                     id: "TABLE_NAME_CELL",
                     name: "alfresco/lists/views/layouts/Cell",
                     config: {
                        additionalCssClasses: "mediumpad",
                        widgets: [
                           {
                              id: "TABLE_NAME",
                              name: "alfresco/renderers/InlineEditPropertyLink",
                              config: {
                                 propertyToRender: "parent.properties.cm:name",
                                 permissionProperty: "node.permissions.user.Write",
                                 postParam: "prop_cm_name",
                                 renderAsLink: true,
                                
                              }
                           }
                        ]
                     }
                  },

Regards

janaka

1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator

No - values are rendered at runtime and you cannot (currently) provide transformation rules in the widget configuration. There are some common transformations for common data types, e.g. parsing and formatting of ISO8601 date expressions. If I need custom formatted values I either use a Share-tier web script to enhance the data or write a custom widget module to apply my formatting rules.