Embperl::Form::Control::grid - A grid control inside an Embperl Form
Used to create a grid control inside an Embperl Form. See Embperl::Form on how to specify parameters.
Needs to be 'grid'
Array ref with field definitions. Should look like any normal field definition.
The following extra attributes are available:
Column number inside the @data array, which should be used for this cell
If given this value is added to the column. This allows one to have multiple checkboxes all writing to the same column, each appending a character or string if set.
field definition which is show in a second line, full width.
If true, controls for add, delete, up and down will not be shown
If grid has more rows as given in this parameter, a header line is also displayed at the bottom of the grid. Default is 10. Set to -1 to always get a header at the bottom.
Number of column to use as sort key
Sort descending
Offset added to column number. Default: 1 If > 1, column number will set to the rownumber
This can be used for readonly view of grid. Normally readonly view will show the content as one large string. The flat attribute can contain a semicolon delimited list of fields that should be shown in readony view. That allows to selectively show fields in readonly view. This can be used to show a readonly view of a grid inside of another grid.
Semikolon delimited list of tripels that add special options for flat view:
<name of fields>;<option name>;<option value>
{ name => 'provider-path', text => 'Suchpfad', type => 'grid', fields => [ { name => 'active', text => 'Aktiv', type => 'checkbox', width => '30' }, { name => 'path', text => 'Pfad' }, ], },
G. Richter (richter at embperl dot org)
perl(1), Embperl, Embperl::Form
To install Embperl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Embperl
CPAN shell
perl -MCPAN -e shell install Embperl
For more information on module installation, please visit the detailed CPAN module installation guide.