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:
Denys Vuika
2017-04-19 15:41:47 +01:00
committed by Mario Romano
parent 6c2e56296f
commit 87b479e720
3 changed files with 94 additions and 22 deletions

View File

@@ -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}}"