PrettySize
Dependency :
compile ":pretty-size:0.2"
Summary
Installation
grails install-plugin pretty-size
Description
PrettySize Plugin
This plugin allows you to display human readable file size.Requirements
- Grails Version: 1.0 and above
Installation
grails install-plugin pretty-size
Usage
<prettysize:display size="${1024}" />"one kilobyte", "2 megabytes", or "3 GB"
Internationalization
- check the "message.properties" file from the plugin directory.
Tag attributes
| Attribute | Required | Default | Description |
|---|---|---|---|
| abbr | no | false | Abbreviation (megabytes -> MB). |
| format | no | The format pattern. See http://java.sun.com/javase/6/docs/api/java/text/DecimalFormat.html | |
| size | yes | The size in bytes |
Version History
- 0.2 - Added 'abbr' and 'format' attributes.
- 0.1 - First official release.