From b7e36c430182cab8b4be4607cb38d21113835e4c Mon Sep 17 00:00:00 2001 From: Luwangel Date: Mon, 13 Jan 2020 11:03:42 +0100 Subject: [PATCH] Remove extra blank line around jekyll raw tags --- docs/Inputs.md | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/docs/Inputs.md b/docs/Inputs.md index c7193407f14..a733eeae216 100644 --- a/docs/Inputs.md +++ b/docs/Inputs.md @@ -186,13 +186,11 @@ Ex. ` { return val.trim().le `` renders a [material-ui `` component](https://material-ui.com/api/text-field/). Use the `options` attribute to override any of the `` attributes: {% raw %} - ```jsx ``` - {% endraw %} **Tip**: If you want to populate the `choices` attribute with a list of related records, you should decorate `` with [``](#referenceinput), and leave the `choices` empty: @@ -208,14 +206,12 @@ import { AutocompleteInput, ReferenceInput } from 'react-admin'; Lastly, would you need to override the props of the suggestions container (a `Popper` element), you can specify them using the `options.suggestionsContainerProps`. For example: {% raw %} - ```jsx ``` - {% endraw %} **Tip**: `` is a stateless component, so it only allows to *filter* the list of choices, not to *extend* it. If you need to populate the list of choices based on the result from a `fetch` call (and if [``](#referenceinput) doesn't cover your need), you'll have to [write your own Input component](#writing-your-own-input-component) based on material-ui `` component. @@ -294,13 +290,11 @@ Ex. ` { return val.trim Lastly, `` renders a [material-ui `` component](https://material-ui.com/api/text-field/). Use the `options` attribute to override any of the `` attributes: {% raw %} - ```jsx ``` - {% endraw %} **Tip**: Like many other inputs, `` accept a `fullWidth` prop. @@ -317,14 +311,12 @@ import { AutocompleteArrayInput, ReferenceArrayInput } from 'react-admin'; If you need to override the props of the suggestions container (a `Popper` element), you can specify them using the `options.suggestionsContainerProps`. For example: {% raw %} - ```jsx ``` - {% endraw %} **Tip**: `` is a stateless component, so it only allows to *filter* the list of choices, not to *extend* it. If you need to populate the list of choices based on the result from a `fetch` call (and if [``](#referencearrayinput) doesn't cover your need), you'll have to [write your own Input component](#writing-your-own-input-component) based on [material-ui-chip-input](https://github.com/TeamWertarbyte/material-ui-chip-input). @@ -365,7 +357,6 @@ This input does not handle `null` values. You would need the ` ``` - {% endraw %} ![CustomBooleanInputCheckIcon](./img/custom-switch-icon.png) @@ -463,7 +453,6 @@ However, in some cases (e.g. inside a ``), you may not want the Lastly, use the `options` attribute if you want to override any of Material UI's `` attributes: {% raw %} - ```jsx import { FavoriteBorder, Favorite } from '@material-ui/icons'; @@ -472,7 +461,6 @@ import { FavoriteBorder, Favorite } from '@material-ui/icons'; checkedIcon: }} /> ``` - {% endraw %} ### Properties @@ -623,11 +611,9 @@ import { PasswordInput } from 'react-admin'; **Tip**: It is possible to set the [`autocomplete` attribute](https://developer.mozilla.org/fr/docs/Web/HTML/Attributs/autocomplete) by injecting an input props: {% raw %} - ```jsx ``` - {% endraw %} ## `` @@ -696,13 +682,11 @@ However, in some cases (e.g. inside a ``), you may not want the Lastly, use the `options` attribute if you want to override any of Material UI's `` attributes: {% raw %} - ```jsx ``` - {% endraw %} Refer to [Material UI RadioGroup documentation](https://material-ui.com/api/radio-group) for more details. @@ -793,7 +777,6 @@ import { ReferenceArrayInput, SelectArrayInput } from 'react-admin'; You can tweak how this component fetches the possible values using the `perPage`, `sort`, and `filter` props. {% raw %} - ```jsx // by default, fetches only the first 25 values. You can extend this limit // by setting the `perPage` prop. @@ -822,7 +805,6 @@ You can tweak how this component fetches the possible values using the `perPage` ``` - {% endraw %} `` also accepts the [common input props](./Inputs.md#common-input-props). @@ -882,7 +864,6 @@ const CommentFilter = (props) => ( You can tweak how this component fetches the possible values using the `perPage`, `sort`, and `filter` props. {% raw %} - ```jsx // by default, fetches only the first 25 values. You can extend this limit // by setting the `perPage` prop. @@ -911,7 +892,6 @@ You can tweak how this component fetches the possible values using the `perPage` ``` - {% endraw %} The child component may further filter results (that's the case, for instance, for ``). ReferenceInput passes a `setFilter` function as prop to its child component. It uses the value to create a filter for the query - by default `{ q: [searchText] }`. You can customize the mapping @@ -1071,13 +1051,11 @@ Note that `translateChoice` is set to `false` when `` is a child of Lastly, use the `options` attribute if you want to override any of Material UI's `` attributes: {% raw %} - ```jsx ``` - {% endraw %} Refer to [Material UI Select documentation](https://material-ui.com/api/select) for more details. @@ -1189,11 +1167,9 @@ const choices = [ Lastly, use the `options` attribute if you want to override any of the `