From ffdfdc7ec6ab9888bddae77697f3476726b01bd3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 27 Dec 2010 13:50:26 +0100 Subject: [PATCH] Dokumentation --- SL/Template/Plugin/L.pm | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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 -- 2.20.1