IWL::Iconbox - an iconbox widget
IWL::Error -> IWL::Object -> IWL::Widget -> IWL::Container -> IWL::Iconbox
The iconbox widget provides a container that holds icons.
IWL::Iconbox->new ([%ARGS])
Where %ARGS is an optional hash parameter with with key-value options. These include:
Width of the iconbox without the borders
Height of the iconbox without the borders
True if the iconbox should be able to select multiple icons
Fires when all the icons have been selected
Fires when all the icons have been unselected
Fires when the iconbox and its icons have finished loading
Emitted when the iconbox has to be refreshed. This event is used by IWL::PageControl. The paramaters hashref contains:
The type of the request:
The given page comes from a user input. In this case, the value parameter is filled with the user requested page number.
The first page. Ideally, a first page should be generated and returned.
The previous page. Ideally, the page, previous to the one given in the page parameter should be returned.
The next page. Ideally, the page, next to the one given in the page parameter should be returned.
The last page. Ideally, the last page should be generated and returned.
If the type parameter was input, this parameter holds the user requested page.
The current page of the widget.
The number of entities per page.
The total number of pages.
As a return first parameter, the perl callback has to return an arrayref of IWL::Iconbox::Icon objects. As a second return parameter, the perl callback can return any of above parameters in the hash reference. These parameters will change the state of the IWL::PageControl for this widget.
Appends an icon object to the iconbox.
Parameters: ICON - the IWL::Iconbox::Icon object to be appended
Prepend an icon object to the iconbox.
Parameters: ICON - the IWL::Iconbox::Icon object to be prepended
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.