The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Embperl::Form::Control::grid - A grid control inside an Embperl Form

SYNOPSIS

DESCRIPTION

Used to create a grid control inside an Embperl Form. See Embperl::Form on how to specify parameters.

PARAMETER

type

Needs to be 'grid'

fields

Array ref with field definitions. Should look like any normal field definition.

The following extra attributes are available:

col

Column number inside the @data array, which should be used for this cell

header_bottom

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.

Example

     {
     name => 'provider-path',
     text => 'Suchpfad',
     type => 'grid', 
     fields =>
        [
        { name => 'active', text => 'Aktiv', type => 'checkbox', width => '30' },
        { name => 'path',   text => 'Pfad' },
        ],
    },

Author

G. Richter (richter@dev.ecos.de)

See Also

perl(1), Embperl, Embperl::Form