add possible future configurability display mode document list and datatable (#2998)

This commit is contained in:
Eugenio Romano
2018-02-26 03:04:19 +00:00
committed by GitHub
parent 76cf4f178e
commit 97a10bde78
10 changed files with 54 additions and 35 deletions

View File

@@ -138,7 +138,7 @@ export class DataTableDemo {
| allowDropFiles | boolean | false | Toggle file drop support for rows (see **ng2-alfresco-core/UploadDirective** for more details) |
| loading | boolean | false | Flag that indicates if the datatable is in loading state and needs to show the loading template. Read the documentation above to see how to configure a loading template |
| showHeader | boolean | true | Toggles header visibility |
| cardview | boolean | true | enable the cardview mode |
| display | string | 'list' | change the display mode can be one of the values provided by the enum : **list**, **gallery** |
| selection | DataRow\[] | \[] | Contains selected rows |
### Events
@@ -205,7 +205,7 @@ If you want enable the card view mode you need to set to true the input paramete
```html
<adf-datatable
[data]="data"
[cardview]="true">
[display]="'gallery'">
</adf-datatable
```

View File

@@ -79,7 +79,7 @@ Displays the documents from a repository.
| skipCount | `number` | `0` | Number of elements to skip over for pagination purposes |
| enableInfiniteScrolling | `boolean` | `false` | Set document list to work in infinite scrolling mode |
| showHeader | `boolean` | `true` | Toggles header visibility |
| cardview | `boolean` | `false` | Enable the cardview mode |
| display | string | 'list' | change the display mode can be one of the values provided by the enum : **list**, **gallery** |
### Events
@@ -141,7 +141,7 @@ If you want enable the card view mode you need to set to true the input paramete
```html
<adf-document-list
[currentFolderId]="'-my-'"
[cardview]="true">
[display]="'gallery'">
</adf-document-list>
```