1 from unfold.plugin import Plugin
3 class SensLabMap (Plugin):
5 # set checkboxes if a final column with checkboxes is desired
6 # pass columns as the initial set of columns
7 # if None then this is taken from the query's fields
8 def __init__ (self, query, **settings):
9 Plugin.__init__ (self, **settings)
12 def template_file (self):
13 return "senslabmap.html"
15 def template_env (self, request):
19 def requirements (self):
21 'js_files' : [ "js/senslabmap.js",
22 "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js",
23 "js/three.js", "js/grenoble.js", "js/viewer3D.js",
25 'css_files': [ "css/senslabmap.css" ,
30 # the list of things passed to the js plugin
31 def json_settings_list (self): return ['plugin_uuid','query_uuid']