Module: alfresco/renderers/Size

alfresco/renderers/Size

Renders a property as a size so that it will be rendered as an easily readable number with the most appropriate units measurement (e.g. MB, KB, etc).
Author:
  • Dave Draper
License:
Source:

Example

Sample configuration:

{
   name: "alfresco/renderers/Size",
   config: {
      propertyToRender: "size"
   }
}

Members

i18nRequirements :object[]

An array of the i18n files to use with this widget.
Type:
  • object[]
Default Value:
  • [{i18nFile: "./i18n/Size.properties"}]
Source:

sizeProperty :string

This can be set to override the default size property of 'jsNode.size' that is typically available when dealing with standard Node data.
Type:
  • string
Default Value:
  • "jsNode.size"
Source:

Methods

postMixInProperties()

Set up the attributes to be used when rendering the template.
Source: