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
@@ -177,6 +177,7 @@ Edition forms in react-admin have a built-in "Undo" feature, letting end users c
177
177
`<Edit>` is designed to be a page component, passed to the edit prop of the `<Resource>` component. But you may want to let users edit a record in a dialiog without leaving the context of the list page. If so, you can use the `<EditDialog>` component. #form https://marmelab.com/react-admin/EditDialog.html
@@ -186,6 +187,7 @@ Edition forms in react-admin have a built-in "Undo" feature, letting end users c
186
187
If you want to let users edit a record from another page, use the `<EditInDialogButton>` component. #form https://marmelab.com/react-admin/EditInDialogButton.html
@@ -215,6 +217,7 @@ Use `<ReferenceOneInput>` in an `<Edit>` or `<Create>` view to edit a record lin
215
217
The `<Search>` component renders a global search input. It’s designed to be always accessible in the top `<AppBar>`. #ui https://marmelab.com/react-admin/Search.html
@@ -231,9 +234,10 @@ The `<Configurable>` component makes another component configurable by the end u
231
234
232
235
---
233
236
234
-
In the case you want keep track of user actions, and get an overview of the activity of your admin, you can display event lists and audit logs with `<TimeLine>`, `<RecordTimeline>` and with `<EventList>` components. #activitylog #timeline #eventlog https://marmelab.com/ra-enterprise/modules/ra-audit-log
237
+
In the case you want keep track of user actions, and get an overview of the activity of your admin, you can display event lists and audit logs with `<TimeLine>`, `<RecordTimeline>` and with `<EventList>` components. #activitylog #timeline #eventlog https://react-admin-ee.marmelab.com/ra-audit-log
@@ -261,6 +265,7 @@ With your admin getting bigger, the default sidebar menu might become too crowde
261
265
If your app needs to display **events**, **appointments**, **time intervals**, or any other kind of time-based data, you can use the `<Calendar>` component. #ui https://marmelab.com/react-admin/Calendar.html
@@ -276,9 +281,10 @@ If your app needs to display **events**, **appointments**, **time intervals**, o
276
281
277
282
---
278
283
279
-
The `<SearchWithResult>` component renders a search input and the search results directly below the input. It's ideal for dashboards or menu panels. #ui #search https://marmelab.com/ra-enterprise/modules/ra-search#searchwithresult
284
+
The `<SearchWithResult>` component renders a search input and the search results directly below the input. It's ideal for dashboards or menu panels. #ui #search https://react-admin-ee.marmelab.com/ra-search#searchwithresult
The `canAccess` helper function allows you to check if the current user has the permissions to execute an action. You can use it to disable desired links on a menu for instance. #Role-Based-Access-Control #RBAC https://react-admin-ee.marmelab.com/ra-rbac#canaccess
1230
+
1231
+
```tsx
1232
+
import { usePermissions, Menu } from "react-admin";
1233
+
import { canAccess } from "@react-admin/ra-rbac";
1234
+
1235
+
const MyMenu = () => {
1236
+
const { permissions } = usePermissions();
1237
+
return (
1238
+
<Menu>
1239
+
<Menu.DashboardItem />
1240
+
<Menu.Item
1241
+
to="/categories"
1242
+
primaryText="Categories"
1243
+
disabled={
1244
+
!canAccess({
1245
+
permissions,
1246
+
resource: "categories",
1247
+
})
1248
+
}
1249
+
/>
1250
+
</Menu>
1251
+
);
1252
+
};
1253
+
```
1254
+
1255
+
---
1256
+
1229
1257
If you render more than one `<DatagridConfigurable>` on the same page, you must pass a unique preferenceKey prop to each one. Do not forget to link their `<SelectColumnsButton>` components by giving them the same preferenceKey. #datagrid https://marmelab.com/react-admin/Datagrid.html#configurable
1230
1258
1231
1259
{% raw %}
@@ -2000,18 +2028,41 @@ You can add custom CSS classes to any column or cell in `DatagridAG` or `Datagri
0 commit comments