Repository navigation
feat: data table for MAUI and Avalonia - #19
Merged
Merged
Conversation
data-table (DataTable, DataTableColumn): a Table filled from a list of objects, for MAUI and Avalonia. - Fills from any list and follows an ObservableCollection as it changes. Each column names the item property it shows, with an optional format. - A filter field: every typed word must match some column. - Sortable headers cycle ascending, descending and unsorted; numbers and dates sort by value. - An optional checkbox column, with a header checkbox that selects every filtered row. - Pages with Previous / Next. Columns read properties by name at run time; a Value function set in code is the alternative for trimmed apps. Row actions and server-side paging from the Blazor version are not ported, and cells show text only. On Avalonia, sortable headers are tab stops and keep focus after a keyboard sort.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
data-table(DataTable, DataTableColumn) for MAUI and Avalonia: aTablefilled from a list of objects. The registry now has 103 entries (100 CLI targets, 69 families).ObservableCollectionas it changes. Each column names the item property it shows, with an optional format string.Both demos show it with twelve sample invoices, and the docs cover it.
Notes
Valuefunction set in code is the trim-safe alternative; the docs show it.table,input,checkboxandbutton, whichadd data-tableinstalls.RowTapped.Verification
data-tableinstalls alone into a fresh Avalonia app and a freshdotnet new mauiapp (Windows target), building with 0 warnings.