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
|`tertiaryText`| Optional |`Function`| - | Passed as a complement to `<ListItemText primary>` with a custom style |
2221
-
|`linkType`| Optional |`string`|`Function`|`false`|`edit`| Target of the `<ListItem>` link. Set to `false` to disable the link. Set to a function `(record, id) => string` to have the link target vary per record. |
2222
-
|`leftAvatar`| Optional |`Function`| - | When present, the `<ListItem>` renders a `<ListItemAvatar>` before the `<ListItemText>`|
2223
-
|`leftIcon`| Optional |`Function`| - | When present, the `<ListItem>` renders a `<ListIcon>` before the `<ListItemText>`|
2224
-
|`rightAvatar`| Optional |`Function`| - | When present, the `<ListItem>` renders a `<ListItemAvatar>` after the `<ListItemText>`|
2225
-
|`rightIcon`| Optional |`Function`| - | When present, the `<ListItem>` renders a `<ListIcon>` after the `<ListItemText>`|
2226
-
|`className`| Optional |`string`| - | Applied to the root element |
|`tertiaryText`| Optional |`Function`| - | Passed as a complement to `<ListItemText primary>` with a custom style |
2221
+
|`linkType`| Optional |`string`|`Function`|`false`|`edit`| Target of the `<ListItem>` link. Set to `false` to disable the link. Set to a function `(record, id) => string` to have the link target vary per record. |
2222
+
|`leftAvatar`| Optional |`Function`| - | When present, the `<ListItem>` renders a `<ListItemAvatar>` before the `<ListItemText>`|
2223
+
|`leftIcon`| Optional |`Function`| - | When present, the `<ListItem>` renders a `<ListIcon>` before the `<ListItemText>`|
2224
+
|`rightAvatar`| Optional |`Function`| - | When present, the `<ListItem>` renders a `<ListItemAvatar>` after the `<ListItemText>`|
2225
+
|`rightIcon`| Optional |`Function`| - | When present, the `<ListItem>` renders a `<ListIcon>` after the `<ListItemText>`|
2226
+
|`className`| Optional |`string`| - | Applied to the root element |
2227
+
|`rowStyle`| Optional |`Function`| - | Applied to the `<ListItem>` styles prop. The function get's called for each row. Receives the current record and index as arguments and should return a style object.|
2227
2228
2228
2229
### Usage
2229
2230
@@ -2234,19 +2235,24 @@ You can use `<SimpleList>` as `<List>` or `<ReferenceManyField>` child:
For each record, `<SimpleList>` executes the `primaryText`, `secondaryText`, `linkType`, `leftAvatar`, `leftIcon`, `rightAvatar`, and `rightIcon` props functions, and creates a `<ListItem>` with the result.
2255
+
For each record, `<SimpleList>` executes the `primaryText`, `secondaryText`, `linkType`, `rowStyle`, `leftAvatar`, `leftIcon`, `rightAvatar`, and `rightIcon` props functions, and creates a `<ListItem>` with the result.
2250
2256
2251
2257
**Tip**: To use a `<SimpleList>` on small screens and a `<Datagrid>` on larger screens, use material-ui's `useMediaQuery` hook:
0 commit comments