From 6b047428a40f3a576699b5493e5eda6223ee8593 Mon Sep 17 00:00:00 2001 From: Thomas Hunter Date: Mon, 21 Jun 2021 15:52:15 +0100 Subject: [PATCH 1/3] [AAE-5362] Add option to make actions button visible only on hover --- docs/core/components/datatable.component.md | 1 + .../components/datatable/datatable.component.html | 6 ++++-- .../components/datatable/datatable.component.scss | 8 ++++++++ .../datatable/components/datatable/datatable.component.ts | 4 ++++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/core/components/datatable.component.md b/docs/core/components/datatable.component.md index 94a0085e5af..b489738260c 100644 --- a/docs/core/components/datatable.component.md +++ b/docs/core/components/datatable.component.md @@ -346,6 +346,7 @@ Learm more about styling your datatable: [Customizing the component's styles](#c | ---- | ---- | ------------- | ----------- | | actions | `boolean` | false | Toggles the data actions column. | | actionsPosition | `string` | "right" | Position of the actions dropdown menu. Can be "left" or "right". | +| actionsVisibleOnHover | `boolean` | false | If set to true, the actions button will only be visible on row hover. | | allowFiltering | `boolean` | false | Flag that indicate if the datatable allow the use facet [widget](../../../lib/testing/src/lib/core/pages/form/widgets/widget.ts) search for filtering. | | columns | `any[]` | \[] | The columns that the datatable will show. | | contextMenu | `boolean` | false | Toggles custom context menu for the component. | diff --git a/lib/core/datatable/components/datatable/datatable.component.html b/lib/core/datatable/components/datatable/datatable.component.html index e39cf4e49d7..e6989ae1b10 100644 --- a/lib/core/datatable/components/datatable/datatable.component.html +++ b/lib/core/datatable/components/datatable/datatable.component.html @@ -72,7 +72,8 @@ [attr.data-automation-id]="'datatable-row-' + idx">
-