X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Ftabs%2Ftabs.py;h=6da94da1a080254cc8c7ea9ba41829dd18e78bee;hb=8c36730846c0f62a6bc1a18d720931d2b46ae537;hp=211af4224799b02fdc1362b837f8d40d27b981c2;hpb=b709866ba93d98c32127ff4deae5b783e271e5b3;p=myslice.git diff --git a/plugins/tabs/tabs.py b/plugins/tabs/tabs.py index 211af422..6da94da1 100644 --- a/plugins/tabs/tabs.py +++ b/plugins/tabs/tabs.py @@ -3,10 +3,17 @@ from unfold.composite import Composite class Tabs (Composite): def requirements (self): - return { 'js_files' : 'js/bootstrap.js', + 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