LEGAL
#===========================================================================
Copyright (C) 2009 by Nik Ogura. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Bug reports and comments to nik.ogura@gmail.com.
#===========================================================================
NAME
CGI::Lazy::Widget::Control
SYNOPSIS
use CGI::Lazy;
our $q = CGI::Lazy->new('/path/to/config/file');
our $composite = $q->widget->composite({
id => 'stuff',
type => 'parentChild',
relationship => {
parent => {
id => 'parentWidget',
searchLike => '%?%',
},
children => {
activity => {
parentKey => 'advertiser.ID',
childKey => 'advertiserID',
},
},
},
members => [
{
class => 'controller',
id => 'parent',
containerId => 'stuff',
template => "parentController.tmpl",
controls => [
{
name => 'id',
label => 'invoice ID',
type => 'select',
sql => ['select id, id from invoice'],
required => 1,
},
],
},
],
);