Class ecm.widget.listView.CommentViewDecorator

Contains the decorators for comments.
Defined in: <ecm\widget\listView\decorators\CommentViewDecorator.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Method Summary

Method Attributes Method Name and Description
<static>  
ecm.widget.listView.CommentViewDecorator.contentCellDecorator(data, rowId, rowIndex)
Handles decoration of the comment.
<static>  
ecm.widget.listView.CommentViewDecorator.contentCellValue(gridData, storeData, cellWidget)
Updates the cell widget template created by the contentCellDecorator method, adding an action button to access comment actions.

Constructor Detail

ecm.widget.listView.CommentViewDecorator()

Since:
2.0.2

Method Detail

<static> ecm.widget.listView.CommentViewDecorator.contentCellDecorator(data, rowId, rowIndex)

Handles decoration of the comment.
Parameters:
data
Cell data in the grid.
rowId
Id of the row containing the cell.
rowIndex
Index of the row containing the cell.
Since:
2.0.2

<static> ecm.widget.listView.CommentViewDecorator.contentCellValue(gridData, storeData, cellWidget)

Updates the cell widget template created by the contentCellDecorator method, adding an action button to access comment actions.
Parameters:
gridData
Contains the data in the grid cell. This will be null in this case, because the comment list relies on retrieving the information from the actual item used to populate the row.
storeData
Contains store data. This will be null in this method, because the appropriate flags are not applied to the Grid to obtain raw store data in this method (it is not needed). See comments in gridx/modules/CellWidget in the GridX documentation for details: http://oria.github.io/gridx/gallery.html.
cellWidget
Widget generated from the template provided in contentCellDecorator.