+ \$().ready(function() {
+ \$('#${id}').multiselect2side({ ${vars} });
+ });
+
+EOCODE
+
+ return $code;
+}
+
+sub dump {
+ my $self = shift;
+ require Data::Dumper;
+ return '' . Data::Dumper::Dumper(@_) . '
';
+}
+
1;
__END__
@@ -381,6 +533,68 @@ tag for each file name parameter passed. Each file name will be
postfixed with '.js' if it isn't already and prefixed with 'js/' if it
doesn't contain a slash.
+=item C
+
+Creates a HTML 'Elink rel="text/stylesheet" href="..."E' tag
+for each file name parameter passed. Each file name will be postfixed
+with '.css' if it isn't already and prefixed with 'css/' if it doesn't
+contain a slash.
+
+=item C $align_code, %attributes>
+
+Creates a date input field, with an attached javascript that will open a
+calendar on click. The javascript ist by default anchoered at the bottom right
+sight. This can be overridden with C, see Calendar documentation for
+the details, usually you'll want a two letter abbreviation of the alignment.
+Right + Bottom becomes C.
+
+=item C
+
+Will create a tabbed area. The tabs should be created with the helper function
+C. Example:
+
+ [% L.tabbed([
+ L.tab(LxERP.t8('Basic Data'), 'part/_main_tab.html'),
+ L.tab(LxERP.t8('Custom Variables'), 'part/_cvar_tab.html', if => SELF.display_cvar_tab),
+ ]) %]
+
+An optional attribute is C, which accepts the ordinal of a tab which
+should be selected by default.
+
+=item C
+
+Creates a generic input tag or textarea tag, depending on content size. The
+mount of desired rows must be given with C parameter, Accpeted parameters
+include C for rendering a minimum of rows if a textarea is displayed.
+
+You can force input by setting rows to 1, and you can force textarea by setting
+rows to anything >1.
+
+=item C
+
+Creates a JavaScript snippet calling the jQuery function
+C on the select control with the ID C<$id>. The
+select itself is not created. C<%params> can contain the following
+entries:
+
+=over 2
+
+=item C
+
+The label of the list of available options. Defaults to the
+translation of 'Available'.
+
+=item C
+
+The label of the list of selected options. Defaults to the
+translation of 'Selected'.
+
+=back
+
+=item C
+
+Dumps the Argument using L into a EpreE block.
+
=back
=head2 CONVERSION FUNCTIONS
@@ -429,6 +643,24 @@ C) will be used as the first element. The title to display for
this element can be set with the option C and defaults to
an empty string.
+The option C can be either a scalar or an array reference
+containing the values of the options which should be set to be
+selected.
+
+=item C
+
+Creates a tab for C. The description will be used as displayed name.
+The target should be a block or template that can be processed. C supports
+a C parameter, which can override the process method to apply target.
+C 'raw'> will just include the given text as is. I was too lazy to
+implement C properly.
+
+Also an C attribute is supported, so that tabs can be suppressed based on
+some occasion. In this case the supplied block won't even get processed, and
+the resulting tab will get ignored by C:
+
+ L.tab('Awesome tab wih much info', '_much_info.html', if => SELF.wants_all)
+
=back
=head1 MODULE AUTHORS