Constructor
new BioontologyBrowser()
- Since:
- Source:
Extends
Members
className
- Source:
noTermHTML
The HTML string to display when no term is selected
- Source:
styles
Extra CSS styles for this view.
- Source:
type
- Source:
Methods
classInfoTemplate(vars) → {string}
Given variables, returns the HTML string the panel that shows details
about a class
Parameters:
Name |
Type |
Description |
vars |
object
|
The variables to use in the template
Properties
Name |
Type |
Description |
label |
string
|
The label of the class |
description |
string
|
The description of the class |
id |
string
|
The ID of the class |
uiLink |
string
|
The link to the class on BioPortal |
|
- Source:
Returns:
The HTML string for the class info panel
-
Type
-
string
Called when the select button is clicked and triggers the selected
event with the selected class model as the argument
- Source:
Fires:
- BioontologyBrowser#event:selected
initialize(options)
Initialize the BioontologyBrowser view
Parameters:
Name |
Type |
Description |
options |
object
|
Options for the view
Properties
Name |
Type |
Description |
ontologyOptions |
object
|
The ontologies (or classes) that
a user can select terms from. Each ontology should have a label and an
ontology acronym, and an optional subtree root. |
|
- Source:
Example
const browser = new BioontologyBrowser({
ontologyOptions: [
{
label: "Measurement Types (ECSO)",
ontology: "ECSO",
subTree: "http://ecoinformatics.org/oboe/oboe.1.2/oboe-core.owl#MeasurementType"
}, { ... } ]
});
render()
- Source:
updateClassInfoEl(transitionTime)
Update the class info panel with the currently selected class
Parameters:
Name |
Type |
Description |
transitionTime |
number
|
The time in milliseconds for the fade
transition between changing info in the panel |
- Source: