NAME
Oak::Web::Additional::TableList - Creates a list with a table (supporting a link with onclick)
HIERARCHY
Oak::Web::Additional::TableList
DESCRIPTION
This component takes the array reference in the "data" property and creates a table where the first line of the array indicates the name of the columns and the other lines are used as the items itself.
PROPERTIES
- data
-
An array reference with the following structure:
usuarios = [ [columnname1,columnname2,columnname3] [item1value1,item1value2,item1value3,item1class], [item2value1,item2value2,item2value3], [item3value1,item3value2,item3value3,item3class], ... ]
When you specify more elements in a line then the declared columns, this additional element is used as the class for the <TR> element of that item.
- class
-
The css class applied to the TABLE element.
- selectedIndex
-
The index in the array of the selected item.
- do_not_use_link
-
If this property is setted, no link is created
- application
-
the target of the link
- origin
-
the __owa_origin__ of the link (defaults to $self->{owner}->get('name'))
EVENTS
- ev_onClick
-
Dispatched when one of the items in the table is selected.
COPYRIGHT
Copyright (c) 2001 Daniel Ruoso <daniel@ruoso.com> Carlos Eduardo de Andrade Brasileiro <eduardo@oktiva.com.br> All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.