From af2cde07911f4cdd6c1396fc4b0f113a8a32ed19 Mon Sep 17 00:00:00 2001 From: Vito Date: Thu, 14 Jun 2018 16:42:28 +0100 Subject: [PATCH] [ADF-3196] fixed task selection and double click (#3484) --- docs/core/datatable.component.md | 1 - docs/process-services/task-list.component.md | 2 +- .../datatable/datatable.component.html | 1 - .../datatable/datatable.component.spec.ts | 20 +++++---- .../datatable/datatable.component.ts | 41 ++----------------- .../components/task-list.component.html | 1 - .../components/task-list.component.ts | 13 +++--- 7 files changed, 22 insertions(+), 57 deletions(-) diff --git a/docs/core/datatable.component.md b/docs/core/datatable.component.md index b67ccd6705..d11baa5037 100644 --- a/docs/core/datatable.component.md +++ b/docs/core/datatable.component.md @@ -271,7 +271,6 @@ export class DataTableDemo { | rowStyle | `string` | | The inline style to apply to every row. See [NgStyle](https://angular.io/docs/ts/latest/api/common/index/NgStyle-directive.html) docs for more details and usage examples. | | rowStyleClass | `string` | "" | The CSS class to apply to every row. | | rows | `any[]` | \[] | The rows that the datatable will show. | -| selectFirstRow | `boolean` | true | Toggles the first row selection. | | selectionMode | `string` | "single" | Row selection mode. Can be none, `single` or `multiple`. For `multiple` mode, you can use Cmd (macOS) or Ctrl (Win) modifier key to toggle selection for multiple rows. | | showHeader | `boolean` | true | Toggles the header. | | sorting | `any[]` | \[] | Define the sort order of the datatable. Possible values are : [`created`, `desc`], [`created`, `asc`], [`due`, `desc`], [`due`, `asc`] | diff --git a/docs/process-services/task-list.component.md b/docs/process-services/task-list.component.md index f8e879cb2d..13f69f349f 100644 --- a/docs/process-services/task-list.component.md +++ b/docs/process-services/task-list.component.md @@ -53,7 +53,7 @@ Renders a list containing all the tasks matched by the parameters specified. | page | `number` | 0 | The page number of the tasks to fetch. | | processDefinitionKey | `string` | | **Deprecated:** 2.4.0 | | processInstanceId | `string` | | The Instance Id of the process. | -| selectFirstRow | `boolean` | true | | +| selectFirstRow | `boolean` | true | Automatically tries to select the first row if a landingTaskId is not given | | selectionMode | `string` | "single" | Row selection mode. Can be none, `single` or `multiple`. For `multiple` mode, you can use Cmd (macOS) or Ctrl (Win) modifier key to toggle selection for multiple rows. | | size | `number` | [`PaginationComponent`](../core/pagination.component.md).DEFAULT_PAGINATION.maxItems | The number of tasks to fetch. Default value: 25. | | sort | `string` | | Define the sort order of the tasks. Possible values are : `created-desc`, `created-asc`, `due-desc`, `due-asc` | diff --git a/lib/core/datatable/components/datatable/datatable.component.html b/lib/core/datatable/components/datatable/datatable.component.html index 10c474664b..a2e1161466 100644 --- a/lib/core/datatable/components/datatable/datatable.component.html +++ b/lib/core/datatable/components/datatable/datatable.component.html @@ -55,7 +55,6 @@ [ngStyle]="rowStyle" [ngClass]="getRowStyle(row)" (keyup)="onRowKeyUp(row, $event)"> -