From: Sven Schöling Date: Mon, 27 Dec 2010 12:50:26 +0000 (+0100) Subject: Dokumentation X-Git-Tag: release-2.6.2beta1~64^2~27 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ffdfdc7ec6ab9888bddae77697f3476726b01bd3;p=kivitendo-erp.git Dokumentation --- diff --git a/SL/Template/Plugin/L.pm b/SL/Template/Plugin/L.pm index 23a293fbf..dc06e8a99 100644 --- a/SL/Template/Plugin/L.pm +++ b/SL/Template/Plugin/L.pm @@ -481,7 +481,15 @@ Right + Bottom becomes C. =item C Will create a tabbed area. The tabs should be created with the helper function -C +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. =back @@ -531,6 +539,20 @@ 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. +=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