From 7c54090deae6e97649311cad7fd18cef7f857e96 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Mon, 6 Feb 2017 09:55:12 +0000 Subject: [PATCH] ability to change position of the dropdown menu (left|right) (#1590) * ability to change position of the dropdown menu (left|right) * unit tests --- .../ng2-alfresco-datatable/README.md | 1 + .../datatable/datatable.component.html | 29 +++++++-- .../datatable/datatable.component.spec.ts | 62 +++++++++++++++++-- .../datatable/datatable.component.ts | 3 + .../ng2-alfresco-documentlist/README.md | 3 +- .../components/document-list.component.html | 1 + .../src/components/document-list.component.ts | 3 + 7 files changed, 93 insertions(+), 9 deletions(-) diff --git a/ng2-components/ng2-alfresco-datatable/README.md b/ng2-components/ng2-alfresco-datatable/README.md index b560bf048e..ad2754a8ef 100644 --- a/ng2-components/ng2-alfresco-datatable/README.md +++ b/ng2-components/ng2-alfresco-datatable/README.md @@ -177,6 +177,7 @@ platformBrowserDynamic().bootstrapModule(AppModule); | `data` | DataTableAdapter | instance of **ObjectDataTableAdapter** | data source | | `multiselect` | boolean | false | Toggles multiple row selection, renders checkboxes at the beginning of each row | | `actions` | boolean | false | Toggles data actions column | +| `actionsPosition` | string (left\|right) | right | Position of the actions dropdown menu. | | `fallbackThumbnail` | string | | Fallback image for row ehre thubnail is missing| ### Events diff --git a/ng2-components/ng2-alfresco-datatable/src/components/datatable/datatable.component.html b/ng2-components/ng2-alfresco-datatable/src/components/datatable/datatable.component.html index 28bd176f42..be77cc8a4f 100644 --- a/ng2-components/ng2-alfresco-datatable/src/components/datatable/datatable.component.html +++ b/ng2-components/ng2-alfresco-datatable/src/components/datatable/datatable.component.html @@ -3,6 +3,10 @@ class="mdl-data-table mdl-js-data-table full-width mdl-data-table-fix-firefox"> + + + Actions +