You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+84-32
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,15 @@ For ScrollView/LazyVGrid-based tables:
37
37
On macOS:
38
38
* Hovering highlight, indicating which row the mouse is over
39
39
40
+
Notes:
41
+
40
42
\* Other platforms like macCatalyst, iPad on Mac, watchOS, tvOS, etc. are poorly supported, if at all. Please contribute to improve support!
41
43
42
44
\*\* AnyView only used to specify sort configuration images in configuration, which shouldn't impact scalability.
43
45
44
46
## Tabler Example
45
47
46
-
The basic example below shows the display of tabular data using `TablerList`, which is for the display of unbound data without any selection capability.
48
+
The example below shows the display of tabular data from an array using `TablerList`, which is for the display of unbound data without any selection capability.
47
49
48
50
```swift
49
51
importSwiftUI
@@ -102,42 +104,56 @@ struct ContentView: View {
102
104
}
103
105
```
104
106
105
-
## Tables
107
+
While `LazyVGrid` is used to wrap the header and row items, you could alternatively wrap them with `HStack` or similar mechanism.
106
108
107
-
You can choose from any of sixteen (16) variants, which break down along the following lines:
109
+
## Tabler Views
108
110
109
-
* Three foundations: List-based, ScrollView/LazyVStack-based, and ScrollView/LazyVGrid-based
110
-
* Selection types offered: none, single-select, and multi-select; availability depending on base
111
-
* RAC - usable with `RandomAccessCollection` (e.g., array of struct), with or without binding
112
-
* CD - usable with Core Data, with or without binding
113
-
* Filter - is `config.filter` supported?
111
+
You can choose from any of eighteen (18) variants, which break down along the following lines:
114
112
115
-
Base | Row Selection | RAC | CD | Filter | View name | Element wrapping
116
-
--- | --- | --- | --- | --- | --- | ---
117
-
List | No Select | ✓ | ✓ | ✓ | TablerList | (none)
118
-
List | No Select | ✓ | | ✓ | TablerListB | Binding\<Element>
119
-
List | No Select | | ✓ | | TablerListC | ObservedObject
When the user clicks on a header column for the first time, it is sorted in ascending order, with an up-chevron "^" indicator. If clicked a successive time, a descending sort is executed, with a down-chevron "v" indicator. See `TablerConfig` for configuration.
175
+
### Core Data
176
+
177
+
The sort method used with Core Data differs. From the _TablerCoreDemo_ app:
160
178
161
-
For sorting with Core Data, see the _TablerCoreDemo_ app.
Note that for Core Data, the user's changes will need to be committed to the Managed Object Context. See the _TablerCoreData_ code for an example of how this might be done.
0 commit comments