horizon/releasenotes/notes/hz-select-fixes-c9bfe6a53e0daa20.yaml
Thai Tran b86be6144e Tablecontroller should return only selected items
Tablecontroller currently returns a map of items that were
checked/unchecked. Which is confusingly called selected.

Currently, to get the actual selected items, We have to manually filter
through the list. This patch adds a selected field that returns a array
containing only the selected items.

Change-Id: I84bea8931c23cfcaa654e437d39b4faf8ae730e4
Closes-Bug: #1545861
2016-02-18 11:38:56 -08:00

11 lines
582 B
YAML

---
fixes:
- Several fixes have been made to the hzTable controller. The list below
outline these changes. See inline documentation for usage details.
- Properties are now bound to the controller instead of the scope.
- Emit the `hzTable:clearSelected` event to clear table row selections.
- The property `selections` tracks the checkbox selection state of each row.
- The property `selected` is now a list of selected rows.
- The property `numSelected` has been removed, use `selected.length` instead.
- The `select` method has been renamed to to `toggleSelect`.