Skip to content

Release v4.42.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 00:58
2dd257d

Summary

DataPage menu actions can now read the page's current selection directly, without mirroring an uncontrolled selection into application state.

Added

  • DataPage.MenuItem command receives the current selection as a DataPageSelection<T> snapshot: the selected item in single selection mode, or a readonly selectedItems collection in multiple selection mode. Existing commands without arguments keep working. (#489)
  • DataPage.MenuItem disabled also accepts a predicate over the current selection, combined with disableOnUnselected; a disabled item never runs its command. (#489)
  • DataPageSelection<T> is exported for typing menu actions; declare the menu item as MenuItem<T> to get typed rows. (#489)