From b74fa78ee20ea28cbace6fe4f5e5baae2cd062e0 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Mon, 3 Nov 2008 17:57:13 +0000 Subject: [PATCH] fixes to DataTable form control removed stupid configuration and added some necessary ones --- lib/WebGUI/Form/DataTable.pm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/WebGUI/Form/DataTable.pm b/lib/WebGUI/Form/DataTable.pm index ebca55347..6e9c9a5ef 100644 --- a/lib/WebGUI/Form/DataTable.pm +++ b/lib/WebGUI/Form/DataTable.pm @@ -50,10 +50,6 @@ The following additional parameters have been added via this sub class. This is the URL to get the data from, AJAX-style. -=head4 ajaxDataFunc - -This is the ?func= to get the data from. - =head4 ajaxSaveUrl This is the URL to send AJAX requests to. If this exists, will send @@ -63,6 +59,10 @@ updates to the table asyncronously. This is the ?func= to send AJAX requests to. +=head4 ajaxSaveExtras + +Any extra name=value pairs needed to save the data successfully + =head4 showEdit If true, will enable the table for editing. This is only necessary when @@ -82,15 +82,15 @@ sub definition { ajaxDataUrl => { defaultValue => undef, }, - ajaxDataFunc => { - defaultValue => "view", - }, ajaxSaveUrl => { defaultValue => undef, }, ajaxSaveFunc => { defaultValue => "view", }, + ajaxSaveExtras => { + defaultValue => undef, + }, }; return $class->SUPER::definition($session, $definition); @@ -282,7 +282,7 @@ sub getValue { if ( ref $value eq "HASH" ) { $value = JSON->new->encode( $value ); } - + return $value; } @@ -301,10 +301,10 @@ sub getValueAsHtml { #------------------------------------------------------------------- -=head2 getTableHtml ( [data] ) +=head2 getTableHtml ( data ) Get the HTML to render the table. C is the data structure with -columns and rows to render. Defaults to C. +columns and rows to render. =cut