IWL::Tree::Row - a row widget
IWL::Error -> IWL::Object -> IWL::Widget -> IWL::Table::Row -> IWL::Tree::Row
The Row widget provides a row for IWL::Tree. It inherits from IWL::Table::Row.
IWL::Tree::Row->new ([%ARGS])
Where %ARGS is an optional hash parameter with with key-values.
Fires when the row is selected
Fires when the row is unselected
Fires when the row is removed
Fires when the row is activated
Fires when the row has collapsed
Fires when the row has expanded
Emitted when a row is expanded. A custom event handler is used. The perl callback for it has to return an arrayref of IWL::Tree::Rows, which will be added as children of the row.
Adds a row as a child of another row in the tree.
Parameters: ROW - the row to be appended
Prepends a row as a child of another row in the tree.
Parameters: ROW - the row to be prepended
Returns a list of the row objects appended or empty list if no rows have been appended.
Parameters: FLAT - false if the method should return all the subrows on all levels
Expands or collapses the row
Parameters: BOOL - true if the row should be expanded
Makes the row a parent row, even if it currently has no children
Returns the row's path. The path itself is set when the row is appended to the tree or to another row.
Sets the row's path explicitly. The path then can be used to append child rows.
Returns the previous row on the same level.
Returns the next row on the same level.
Sets whether the row is the currently selected row.
Parameters: BOOL - true if the row should be selected
Returns true if the row is selected
Returns the parent rows of the current row, if it has any
Returns the first childr row of the current row.
Returns the last child row of the current row
Returns a row from a given path
Parameters: PATH - the path array
setNavigation is used to enable or disable the naviagtion of the row. by default the navigation is enabled.
Parameters: BOOL - a boolean value, true if navigation should be enabled
Sorts the tree when the column is clicked. Should only be used for header rows.
Parameters: COL_NUM - the column number, which will be used for sorting. CALLBACK - an optional callback to be called instead of the default, URL - URL of an ajax script to sort the tree and return the new content (with getContent()), CALLBACK has no effect if URL is set.
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.
2 POD Errors
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.