mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
add possible future configurability display mode document list and datatable (#2998)
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
|
@@ -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>
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user