Summary

Bundles free icons from http://www.fatcow.com and provides a handful of convenient taglibs that create asynchronous buttons out of the icons.This plugin started as a clone of the grails-glyph-icons plugin with some adaptations.

Usage

fatcow:icon

For example, the following will produce an tag on the page, loading the 16x16 'accept.png' icon:

<fatcow:icon iconName="accept"/>

iconName

The file name of the plugin without the .png extension. For example, iconName="accept" would load the resource from '/images/FatCowIcons16x16/accept.png' .

size

Currently either 16x16 or 32x32 . Size is optional and will default to 16x16 .

alt

Creates the HTML alt attribute in the <img/> tag. The taglib doesn't require this attribute, although HTML standard does. If you leave this blank, the plugin will place the iconName in there instead.

width

Generates an HTML width attribute in the <img/> tag.

height

Generates an HTML height attribute in the <img/> tag.

fatcow:action

Uses an icon as a link to a remote uri that can be invoked via ajax. This tag is a thin wrapper above the remoteLink tag built into grails. The attributes for the action tag are exactly the same as icon, adding all the attributes from remoteLink .

For example, the following will produce an async link using the the accept.png icon, calling the mycontroller/list and updating the content element with the results: