mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
datatable improvements (#1822)
- move ngSwitch outside of the ngFor directive (to avoid issues) - improved template maintainance (without ngFor template hack) - readme updates to reflect new features
This commit is contained in:
committed by
Mario Romano
parent
6c2e56296f
commit
87b479e720
@@ -27,12 +27,21 @@
|
||||
title="{{'DOCUMENT_LIST.COLUMNS.DISPLAY_NAME' | translate}}"
|
||||
key="name"
|
||||
class="full-width ellipsis-cell">
|
||||
<!-- Example of using custom column template -->
|
||||
|
||||
<!-- Example #1: using custom template with implicit access to data context -->
|
||||
<!--
|
||||
<template let-entry="$implicit">
|
||||
<span>Hi! {{entry.data.getValue(entry.row, entry.col)}}</span>
|
||||
</template>
|
||||
-->
|
||||
|
||||
<!-- Example #2: using custom template with value access -->
|
||||
<!--
|
||||
<template let-value="value">
|
||||
<span>Hi! {{value}}</span>
|
||||
</template>
|
||||
-->
|
||||
|
||||
</data-column>
|
||||
<data-column
|
||||
title="{{'DOCUMENT_LIST.COLUMNS.TAG' | translate}}"
|
||||
|
Reference in New Issue
Block a user