Constructors
Methods
-
addSubrow(config){otris.scriptlist.Subrow}
-
Add a subrow to display as a sublist after the last grid column.
This can also be used to add documents that will be opened on click on a certain file.Name Type Description configstring | object Stringif only value should be displayed orObjectfor further configuration.Name Type Description iconsArray.<string> Array of icons to be used for the subrow. Currently only the first icon is displayed.
documentNamestring full document name to be displayed if referenced subrow is a file document. This is only needed if thumbnails are created automatically based on these paremeters.
extensionstring Extension of the document to be used as automatically generate file type icon. This is only needed if thumbnails are created automatically based on these paremeters.
sizestring Size to be displayed on hover thumbnail icon, with unit (e.g. byte). This is only needed if thumbnails are created automatically based on these paremeters.
onclickstring Javascript Code to be executed if the subrow was clicked.
valuesArray.<string> 0 :name to be displayed
1 :size filesize to be displayed if list is displayed as blobthumbnails- Since:
- Documents 5.0e
Returns:
Type Description otris.scriptlist.Subrow -
setAction(newAction)
-
Action which will be fired when the row is clicked.
Available actions: showFile, showFolder, runScriptName Type Description newActionstring function to be executed on mouse click
Example
listRow.setAction("showFile:" + myFileId); -
setDetailsParams(detailsParams)
-
Set the row specific parameters that should be send to the details script when expanding
the details row. Overwrites the parameters set in the list.Name Type Description detailsParamsObject key/value object of parameters to pass to the details script
-
setDetailsScriptName(detailsScriptName)
-
Set the row specific name of the script that is called when the rows details row will be expanded.
(Overwrites the scriptName set in the list).Name Type Description detailsScriptNamestring the scriptname to use for displaying the details row
-
setEmphasized(emphasized)
-
Mark the row as emphasized. Shown with bold text in the list.
Name Type Description emphasizedboolean emphasized flag
- Since:
- Documents 5.0e
-
setOnClick(newOnclick)
-
Set handler for click event.
Name Type Description newOnclickString function as string to be executed on mouse click
-
setOnDoubleClick(newOnDoubleclick)
-
Set handler for double click event.
Name Type Description newOnDoubleclickString function as string to be executed on mouse double click
-
setSelected(selected)
-
Checks the row on display
Name Type Description selectedBoolean True if row should be selected in view
-
setTag(tag)
-
Tag the row with a predefined grey marker or insert custom html
Name Type Description tagboolean | string True for a standard grey marker, String for HTML
-
setTagColor(tagColor)
-
Set the tag color
Name Type Description tagColorstring Html color for the row's tag
-
transfer(){Object}
-
Transfer function returning the data of the Row for a gadget.
Returns:
Type Description Object Data of the row