IWL::Iconbox::Icon - an icon widget for the iconbox
IWL::Error -> IWL::Object -> IWL::Widget -> IWL::Container -> IWL::Iconbox::Icon
The Icon widget is a basic widget for the iconbox. It features an icon, and a title underneath it.
IWL::Iconbox::Icon->new ([%ARGS])
Where %ARGS is an optional hash parameter with with key-value options. These include:
The direction in which the icon will float in the iconbox
The margin around the icon. Defaults to '5px'
Fires when the icon is selected
Fires when the icon is unselected
Fires when the icon is removed
Fires when the icon is activated
Sets the image of the icon to the one provided
Parameters: IMAGE - the url, or the stock id of the image, ALT - the alt text of the image
Returns the icon image
Sets the text underneath the icon to the one provided
Parameters: TEXT - the text string
Returns the text of the icon label
Sets whether the icon should be selected.
Parameters: BOOL - true if the icon should be selected;
Returns true if the icon is selected
Sets the dimensions of the icon to the given ones.
Parameters: WIDTH - the width, HEIGHT - the height.
Note: the dimension units should be provided. Thus, the above parameters will be strings, with the dimension integer, and the given unit to it. E.g.: "64px". Omitting the units might not work on some user agents.
Copyright (c) 2006-2008 Viktor Kojouharov. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install IWL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IWL
CPAN shell
perl -MCPAN -e shell install IWL
For more information on module installation, please visit the detailed CPAN module installation guide.