Skip to content

Commit

Permalink
Fixed documentation about <NullableBooleanInput>
Browse files Browse the repository at this point in the history
  • Loading branch information
sliterok authored and JulienMattiussi committed Aug 24, 2020
1 parent d6e1c61 commit bc8cc47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/Inputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,16 @@ import { NullableBooleanInput } from 'react-admin';
/>
```

Also you need to provide your own label for null value.

```jsx
import polyglotI18nProvider from 'ra-i18n-polyglot';
import englishMessages from 'ra-language-english';

englishMessages.ra.boolean.null = 'Null label';
const i18nProvider = polyglotI18nProvider(() => englishMessages, 'en');

<Admin i18nProvider={i18nProvider}></Admin>
```

![NullableBooleanInput](./img/nullable-boolean-input-null-label.png)
Expand Down

0 comments on commit bc8cc47

Please sign in to comment.