From 7491274dca9f1f118c086377d513cc83f79b01d6 Mon Sep 17 00:00:00 2001 From: Etienne Bernard Date: Wed, 10 Jan 2018 21:37:25 +0100 Subject: [PATCH] quick documentation fix for markdown table by escaping the | between React.Component and string --- website/site/content/docs/custom-widgets.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/site/content/docs/custom-widgets.md b/website/site/content/docs/custom-widgets.md index 4b84ee03..ace52586 100644 --- a/website/site/content/docs/custom-widgets.md +++ b/website/site/content/docs/custom-widgets.md @@ -25,11 +25,11 @@ CMS.registerWidget(name, control, \[preview\]) **Params:** -| Param | Type | Description | | -| ----------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | string | Widget name, allows this widget to be used via the field `widget` property in config | | -| `control` | React.Component | string | | -| [`preview`] | React.Component, optional | Renders the widget preview, receives the following props: | | +| Param | Type | Description | +| ----------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | string | Widget name, allows this widget to be used via the field `widget` property in config | +| `control` | React.Component \| string | | +| [`preview`] | React.Component, optional | Renders the widget preview, receives the following props: | * **field:** The field type that this widget will be used for. * **control:** A React component that renders the editing interface for this field. Two props will be passed: