IWL::Tree - a tree widget
IWL::Error -> IWL::Object -> IWL::Widget -> IWL::Table -> IWL::Tree
The tree widget provides a container that holds cells arranged in a tree layout, with multiple rows. Inherits from IWL::Table
IWL::Tree->new ([%ARGS])
Where %ARGS is an optional hash parameter with with key-values:
Boolean. true if the tree is a list.
True if the iconbox should be able to select multiple icons
True if the selected row should be scrolled into visibility
True if the tree should alternate
True if the tree should animate the collapse of its rows
Fires when all rows of the tree have been selected
Fires when all rows of the tree have been unselected
Fires when a row has been activated by double-clicking on it, or pressing [Enter]
Fires when a row has collapsed
Fires when a row has expanded
Fires when the tree has been loaded
Emitted when the tree has to be refreshed. This event is used by IWL::PageControl. As a return first parameter, the perl callback has to return an arrayref of IWL::Tree::Row objects. As a second return parameter, the perl callback can return the same values as the IWL::Iconbox refresh event. These values will change the state of the IWL::PageControl for this widget.
Returns an array of all the body rows of the tree
Sets whether the tree is a list
Parameters: BOOL - a boolean value
Returns true if the tree is a list
Sets the callback to provide the sorting function for the tree/list, based on the column with index COL_NUM
Parameters: COL_INDEX - the column index, JS_CALLBACK - the javascript callback, which will receive the column index as a parameter, and must return a sorting function for the rows
Appends an array of rows to the body to the tree. An alias to the appendBody method.
Parameters: ROW - a row of IWL::Tree::Row
Prepeds an array of rows to the body to the tree. An alias to the prependBody method.
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.