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
If your app uses [authentication](./Authentication.md), the `<AppBar>` component displays a button to display the user menu on the right side. By default, the user menu only contains a logout button.
As for the developer experience, react-admin is constantly evolving to find the sweet spot between an intuitive API, power user features, not too much magic, and just enough documentation. The core team are the first testers of react-admin, and pay attention to the productivity, debuggability, discoverability, performance, and robustness of all the hooks and components.
The `authProvider.logout()` method is also a good place to notify the authentication backend that the user credentials are no longer valid after logout.
Copy file name to clipboardexpand all lines: docs/Authentication.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,11 @@ title: "security"
5
5
6
6
# Security
7
7
8
-

8
+
<videocontrolsautoplaymutedloop>
9
+
<sourcesrc="./img/login.webm"type="video/webm"/>
10
+
Your browser does not support the video tag.
11
+
</video>
12
+
9
13
10
14
React-admin lets you secure your admin app with the authentication strategy of your choice. Since there are many possible strategies (Basic Auth, JWT, OAuth, etc.), react-admin delegates authentication logic to an `authProvider`.
To allow users to add new options, pass a React element as the `create` prop. `<AutocompleteArrayInput>` will then render a "Create" option at the bottom of the choices list. When clicked, it will render the create element.
**Tip**: This input doesn't let users set a `null` value - only `true` or `false`. Use the [`<NullableBooleanInput />`](./NullableBooleanInput.md) component if you have to handle non-required booleans.
@@ -365,7 +369,11 @@ To override the style of all instances of `<SkipNavigationButton>` using the [Ma
365
369
366
370
The `<MenuItemLink>` component displays a menu item with a label and an icon - or only the icon with a tooltip when the sidebar is minimized. It also handles the automatic closing of the menu on tap on mobile.
Copy file name to clipboardexpand all lines: docs/Configurable.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,11 @@ title: "The Configurable Component"
7
7
8
8
This component makes another component configurable by the end user. When users enter the configuration mode, they can customize the component's settings via the inspector.
Bulk action buttons are buttons that affect several records at once, like mass deletion for instance. In the `<Datagrid>` component, the bulk actions toolbar appears when a user ticks the checkboxes in the first column of the table. The user can then choose a button from the bulk actions toolbar. By default, all Datagrids have a single bulk action button, the bulk delete button. You can add other bulk action buttons by passing a custom element as the `bulkActionButtons` prop of the `<Datagrid>` component:
To show more data from the resource without adding too many columns, you can show data in an expandable panel below the row on demand, using the `expand` prop.
394
402
@@ -804,7 +812,11 @@ const PostList = () => (
804
812
805
813
The [`<SelectColumnsButton>`](./SelectColumnsButton.md) component lets users hide, show, and reorder datagrid columns.
The column headers are buttons allowing users to change the list sort field and order. This feature requires no configuration and works out fo the box. The next sections explain how you can disable or modify the field used for sorting on a particular column.
Copy file name to clipboardexpand all lines: docs/DateInput.md
+10-2
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,11 @@ title: "The DateInput Component"
7
7
8
8
Ideal for editing dates, `<DateInput>` renders an HTML `<input type="date">` element, that most browsers display as a [date picker](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date).
The appearance of `<DateInput>` depends on the browser, and falls back to a text input on Safari. The date formatting in this input depends on the user's locale.
13
17
@@ -42,4 +46,8 @@ It is not possible to customize the date format. Browsers use the user locale to
42
46
43
47
If you need to render a UI despite the browser locale, MUI also proposes a [Date Picker](https://mui.com/x/react-date-pickers/date-picker/) component, which is more customizable than the native date picker, but requires additional packages.
Copy file name to clipboardexpand all lines: docs/DateTimeInput.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,11 @@ title: "The DateTimeInput Component"
7
7
8
8
An input for editing dates with time. `<DateTimeInput>` renders an `<input type="datetime-local" >` element, that most browsers display as [date and time picker](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local).
0 commit comments