IRISEvent_UINode
This class extends UINode
in order to provide a specific graphical representation of
nodes
representing events originating from sources
of tyle IRIS_EVENT
.
The following CSS is required:
<!-- API CSS -->
<link rel="stylesheet" type="text/css" href="https://api.geodab.eu/docs/assets/css/giapi.css" />
The image above shows a IRISEvent_UINode
The code snippet below shows how to register this class to the ResultSetLayout
:
var resultSetLayout = GIAPI.ResultSetLayout(id,{
// registers this class to the layout
'uiNodes': [GIAPI.IRISEvent_UINode],
// ...other default ResultSetLayout properties
});
Constructor
IRISEvent_UINode
()
Item Index
Methods
Methods
isRenderable
()
#crossLink "Report
Return true
if this {{#crossLink "GINode"}}{{/crossLink}}
{{#crossLink "Report}}report{{/crossLink}} has the "QuakeML" extension property
Returns:
#crossLink "Report:
true
if this GINode
}report{{/crossLink}} has the "QuakeML" extension property
render
(
-
node
-
rowNumber
-
rowId
-
colNumber
-
colId
Renders this
This implementation creates a component constituted by a
When an element is appended to the DOM, the correspondent event function (
In most part of the cases, there is no need to override this method since the implementation of the
For more info see this section.
UINode
with the given {{#crossLink "GINode"}}node{{/crossLink}}
.This implementation creates a component constituted by a
<section>
and a <aside>
elements according to the options.sectionDom
and options.asideDom
.When an element is appended to the DOM, the correspondent event function (
options.sectionDom
or options.asideDom
) is called.In most part of the cases, there is no need to override this method since the implementation of the
options.sectionDom
and options.asideDom
functions is enough.For more info see this section.
Parameters:
-
node
GINodethe {{#crossLink "GINode"}}node{{/crossLink}} to use for rendering -
rowNumber
Integerthe number of the current row of the {{#crossLink "ResultSetLayout"}}{{/crossLink}} -
rowId
Stringthe identifier of the current row of the {{#crossLink "ResultSetLayout"}}{{/crossLink}} -
colNumber
Integerthe number of the current column of the {{#crossLink "ResultSetLayout"}}{{/crossLink}} -
colId
Stringthe identifier of the current column of the {{#crossLink "ResultSetLayout"}}{{/crossLink}}; the<section>
and a<aside>
elements are appended to this column