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).
- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Example
{
name: "alfresco/renderers/Size",
config: {
propertyToRender: "size"
}
}
Mixes In
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: