formatFileSize
Format a file size in bytes, KB, MB or TB as needed. Equivalent to NumberHelper.number_to_human_size in Ruby
Tag Information | |
---|---|
Tag Class | org.loom.tags.messages.FormatFileSizeTag |
Body Content | scriptless |
Dynamic Attributes | false |
Example | <l:formatFileSize value="${123.5 * 1024}"/> |
Attributes
Name | Description | Flags |
---|---|---|
value | value to format |
requiredrtexprvalue
|
precision |
rtexprvalue
|
|
scope | If var is not null, this is the scope where the value will be stored.
Possible values are page (default), request ,
session and application .
|
rtexprvalue
|
var | if not null, the value will be stored as an attribute instead of rendered in the page |
rtexprvalue
|