Child pages
  • JSRenderEvent

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Hidden
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE


HTML Table
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSRecord
Table Cell (td)
#getRecord()
Returns the record of the element that is being rendered.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#getRecordIndex()
Returns the record index of the element that is being rendered.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Renderable
Table Cell (td)
#getRenderable()
Returns the element that is being rendered.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#hasFocus()
Returns whether or not the element that is being rendered has focus.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#isRecordSelected()
Returns whatever or not the record of the element that is being rendered is selected.

HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Method Details
Table Body (tbody)
idgetRecord
classnode
Table Row (tr)
idname
Table Cell (td)
getRecord
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
JSRecord
Span
stylefloat: left; font-weight: bold;
idiets
getRecord
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns the record of the element that is being rendered.
Table Row (tr)
idret
Table Cell (td)
Returns
JSRecord – Record of the element that is being rendered
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
// type the record returned from the call with JSDoc, fill in the right server/tablename
/** @type {JSRecord<db:/servername/tablename>} */
var record = event.getRecord();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetRecordIndex
classnode
Table Row (tr)
idname
Table Cell (td)
getRecordIndex
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Number
Span
stylefloat: left; font-weight: bold;
idiets
getRecordIndex
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns the record index of the element that is being rendered.
Table Row (tr)
idret
Table Cell (td)
Returns
Number – record index of the element that is being rendered
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
event.getRecordIndex()
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetRenderable
classnode
Table Row (tr)
idname
Table Cell (td)
getRenderable
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Renderable
Span
stylefloat: left; font-weight: bold;
idiets
getRenderable
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns the element that is being rendered.
Table Row (tr)
idret
Table Cell (td)
Returns
Renderable – Renderable the element that is being rendered
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
event.getRenderable();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idhasFocus
classnode
Table Row (tr)
idname
Table Cell (td)
hasFocus
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Boolean
Span
stylefloat: left; font-weight: bold;
idiets
hasFocus
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns whether or not the element that is being rendered has focus.
Table Row (tr)
idret
Table Cell (td)
Returns
Boolean – true if the element that is being rendered has the focus, false otherwise
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
event.hasFocus();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idisRecordSelected
classnode
Table Row (tr)
idname
Table Cell (td)
isRecordSelected
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Boolean
Span
stylefloat: left; font-weight: bold;
idiets
isRecordSelected
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns whatever or not the record of the element that is being rendered is selected.
Table Row (tr)
idret
Table Cell (td)
Returns
Boolean – true if the record of the element that is being rendered is selected
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
event.isRecordSelected()
Table Row (tr)
classlastDetailRow
Table Cell (td)