Daniel Ruoso > Oak-Web-1.8 > Oak::Web::Additional::TableList

Download:
Oak-Web-1.8.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

Oak::Web::Additional::TableList - Creates a list with a table (supporting a link with onclick)

HIERARCHY ^

Oak::Object

Oak::Persistent

Oak::Web::Visual

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 ^

format

An text with the definitions for the colum:

  align="left" valign="middle" style="la"|align="right" valign="middle" style="la"
data

An array reference with the following structure:

  usuarios = [
              [undef,columnname1,columnname2,columnname3]
              [id1,item1value1,item1value2,item1value3,item1class],
              [id2,item2value1,item2value2,item2value3],
              [id3,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.

selected

The id of the selected item.

do_not_use_link

If this property is setted, no link is created

link_at

Set in wich column to set the link (default 1)

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.