Class Biojs.Rheaction
Version
1.0.0.
Extends
Biojs.
Defined in: Biojs.Rheaction.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Biojs.Rheaction(options)
BioJS component to display Rhea reactions.
|
| Field Attributes | Field Name and Description |
|---|---|
| <inner> |
Default values for the options.
|
| Method Attributes | Method Name and Description |
|---|---|
|
constructor(options)
|
|
|
setId(id)
Sets and displays data for a new identifier.
|
- Methods borrowed from class Biojs:
- addListener, extend, getId, listen, raiseEvent, setEventHandlers, setOptions
Class Detail
Biojs.Rheaction(options)
BioJS component to display Rhea reactions.
Author: Rafael Alcántara.
Author: Rafael Alcántara.
var instance = new Biojs.Rheaction({
target: 'YourOwnDivId',
id: '21881'
});
- Parameters:
- {Object} options
- An object with the options for the component.
- Options detailed:
- {string} target
- The ID of the DIV tag where the component should be displayed.
- {string} id
- The Rhea ID, with or without 'RHEA:' prefix.
- {string} [dimensions='200']
- The dimensions of compound structure images (side of the square) in pixels.
- {string} [proxyUrl='../biojs/dependencies/proxy/proxy.php']
- This component needs to request data from a web service. To bypass the same origin policy (http://en.wikipedia.org/wiki/Same_origin_policy) this component needs a proxy. You could use your own proxy by modifying this value or one of the BioJS proxies: '../biojs/dependencies/proxy/proxy.php' or '../biojs/dependencies/proxy/proxy.jsp'
- Requires:
- Server side proxy
- jQuery Core 1.6.4
- Rheaction.css
Field Detail
<inner>
opt
Default values for the options.
Method Detail
constructor(options)
- Parameters:
- options
setId(id)
Sets and displays data for a new identifier.
instance.setId("RHEA:10280");
instance.setId("10735");
instance.setId("RHEA:18476");
instance.setId("XXXXX");
- Parameters:
- {string} id
- The identifier.