IWL::Tree - a tree widget
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:
list: boolean. true if the tree is a list. multipleSelect: true if the iconbox should be able to select multiple icons scrollToSelection: true if the selected row should be scrolled into visibility alternate: true if the tree should alternate animate: 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
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(3pm)
Prepeds an array of rows to the body to the tree. An alias to the prependBody method.
Copyright (c) 2006-2007 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.