(fetch-script tool tool-id)
Dynamically inserts the tool api script into the head of the document
Dynamically inserts the tool api script into the head of the document
(fetch-styles tool)
If the tool api script has a stylesheet as well, load it and insert into the doc
If the tool api script has a stylesheet as well, load it and insert into the doc
(main)
Initialise all the tools on the page
Initialise all the tools on the page
Can be used from JS like this: navigate('report', {type: 'Gene', id: 1018204}, 'humanmine'); navigate('query', myQueryObj, 'flymine'); Note that the third argument specifying the mine namespace is optional.
Can be used from JS like this: navigate('report', {type: 'Gene', id: 1018204}, 'humanmine'); navigate('query', myQueryObj, 'flymine'); Note that the third argument specifying the mine namespace is optional.
(navigate_ target data mine)
JS can't call navigate
if we pass it the multimethod directly, so wrap it!
JS can't call `navigate` if we pass it the multimethod directly, so wrap it!
(run-script tool tool-id)
Executes a tool-api compliant main method to initialise a tool
Executes a tool-api compliant main method to initialise a tool
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close