IWL::Accordion - an accordion widget
IWL::Error -> IWL::Object -> IWL::Widget -> IWL::Container -> IWL::Accordion
The accordion widget provided a way to stack content into an expandable container
IWL::Accordion->new ([%ARGS])
Where %ARGS is an optional hash parameter with with key-values.
True if the accordion should have a horizontal orientation. Note that a horizontal accordion must have a height style set
The speed (0 - 10), at which the pages change. Set to 11 have an instant change. Defaults to 8
The event, which will trigger the page change. Example events are click, mouseover, mouseout, ... Defaults to click
The default size of the accordion pages. A hashref with the optional keys width and height, and numeric values.
Appends a new page and adds the object to the page
Parameter: OBJECT - the IWL::Object to be appended, TEXT - the text for the page title, SELECTED - true if the page should be the selected one
Returns: the newly created page
Prepends a new page and adds the object to the page
Parameter: OBJECT - the IWL::Object to be prepended, TEXT - the text for the page title, SELECTED - true if the page should be the selected one
Sets the orientation of the accordion
Parameters: ORIENTATION - the orientation, can be either vertical or horizontal
Note: if the orientation is horizontal, the accordion must have a height style. Also, it is preferrable if some width is set through the "setDefaultSize" method
Returns the orientation of the accordion
Sets the resize speed of the accordion
Parameters: SPEED - the resize speed, between 0 and 10, and 11 for instant
Returns the resize speed of the accordion
Sets the event, which will trigger the page change.
Parameters: EVENT - the event, which will trigger the page change. Example events are click, mouseover, mouseout, .... Defaults to click
Returns the event, which will trigger the page change
Sets the default size of the accordion pages
Parameters: %SIZE - the size hash, with optional width and height keys, and numeric values, representing the size in pixels
Returns the default size of the accordion pages
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.