How to format string value in aikau widget

cancel
Showing results for 
Search instead for 
Did you mean: 
janaka1984
Established Member II

How to format string value in aikau widget

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
afaust
Master

Re: How to format string value in aikau widget

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.