diff --git a/demo-shell-ng2/app/components/files/files.component.css b/demo-shell-ng2/app/components/files/files.component.css
index 73ec99ca5d..c75159ff4f 100644
--- a/demo-shell-ng2/app/components/files/files.component.css
+++ b/demo-shell-ng2/app/components/files/files.component.css
@@ -19,3 +19,25 @@
.adf-not-overlay-viewer {
height:900px;
}
+
+adf-document-list >>> adf-datatable .alfresco-datatable__row--selected .image-table-cell {
+ position: relative;
+}
+
+adf-document-list >>> adf-datatable .alfresco-datatable__row--selected .image-table-cell::before {
+ content: "\E876"; /* "done" */
+ font-family: "Material Icons";
+ font-size: 24px;
+ line-height: 32px;
+ text-align: center;
+ color: white;
+ position: absolute;
+ width: 32px;
+ height: 32px;
+ top: 50%;
+ left: 50%;
+ margin-top: -16px;
+ margin-left: -14px;
+ border-radius: 100%;
+ background: #00bcd4;
+}
diff --git a/demo-shell-ng2/app/components/files/files.component.html b/demo-shell-ng2/app/components/files/files.component.html
index abc49228e1..cc4cdca0dc 100644
--- a/demo-shell-ng2/app/components/files/files.component.html
+++ b/demo-shell-ng2/app/components/files/files.component.html
@@ -40,7 +40,7 @@
-
-
+
+
-
+
diff --git a/ng2-components/ng2-alfresco-documentlist/README.md b/ng2-components/ng2-alfresco-documentlist/README.md
index b41fe91d00..b14f4bd972 100644
--- a/ng2-components/ng2-alfresco-documentlist/README.md
+++ b/ng2-components/ng2-alfresco-documentlist/README.md
@@ -201,6 +201,60 @@ It helps examining other valuable information you can have access to if needed:
**Important note**: for this particular scenario you must also trigger `changeDetector.detectChanges()` as in the example above.
+## Custom icons for selected rows
+
+You can use the "class" property of the "DataColumn" component to apply your custom css.
+
+As an example, this feature can be used to change the look and feel of the icon for the selected rows.
+
+Let's start by assigning an "image-table-cell" class to the thumbnail column:
+
+```html
+
+
+
+
+
+
+ ...
+
+
+```
+
+Now your application can define custom styles to change the content of the column based on some other conditions, like selection state:
+
+```css
+adf-document-list >>> adf-datatable .alfresco-datatable__row--selected .image-table-cell {
+ position: relative;
+}
+
+adf-document-list >>> adf-datatable .alfresco-datatable__row--selected .image-table-cell::before {
+ content: "\E876"; /* "done" */
+ font-family: "Material Icons";
+ font-size: 24px;
+ line-height: 32px;
+ text-align: center;
+ color: white;
+ position: absolute;
+ width: 32px;
+ height: 32px;
+ top: 50%;
+ left: 50%;
+ margin-top: -16px;
+ margin-left: -14px;
+ border-radius: 100%;
+ background: #00bcd4;
+}
+```
+
+Once your application starts you should see the following icon for each selected row:
+
+
+
## Calling DocumentList api directly
Typically you will be binding DocumentList properties to your application/component class properties:
diff --git a/ng2-components/ng2-alfresco-documentlist/docs/assets/document-list-custom-icon.png b/ng2-components/ng2-alfresco-documentlist/docs/assets/document-list-custom-icon.png
new file mode 100644
index 0000000000..487aa1fe4b
Binary files /dev/null and b/ng2-components/ng2-alfresco-documentlist/docs/assets/document-list-custom-icon.png differ