X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Ftabs%2F__init__.py;h=6da94da1a080254cc8c7ea9ba41829dd18e78bee;hb=c86f4d109aa25eddb364f190ae0324a95f7eac90;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=18e2193c02477ab0b948f0748848e8bf190b6e7e;p=unfold.git diff --git a/plugins/tabs/__init__.py b/plugins/tabs/__init__.py index e69de29b..6da94da1 100644 --- a/plugins/tabs/__init__.py +++ b/plugins/tabs/__init__.py @@ -0,0 +1,19 @@ +from unfold.composite import Composite + +class Tabs (Composite): + + def requirements (self): + return { 'js_files' : ['js/tabs.js', 'js/bootstrap.js'], + 'css_files' : ['css/bootstrap.css', 'css/tabs.css', ] + } + + def template_file (self): + return "tabs.html" + + # see Composite.py for the details of template_env, that exposes global + # 'sons' as a list of sons with each a set of a few attributes + def json_settings_list (self): + return [] + + def export_json_settings(self): + return True