From 0458a32052c4a37907f6163591fbdd35283d7774 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Tue, 5 Nov 2019 13:10:30 +0000 Subject: [PATCH] Updates docs --- .../src/components/link-control/README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/link-control/README.md b/packages/block-editor/src/components/link-control/README.md index d458448175ee9e..ee955ac9a387f9 100644 --- a/packages/block-editor/src/components/link-control/README.md +++ b/packages/block-editor/src/components/link-control/README.md @@ -14,8 +14,20 @@ ### currentSettings -- Type: `Object` -- Required: Yes +- Type: `Array` +- Required: No +- Default: +``` +[ + { + id: 'newTab', + title: 'Open in New Tab', + checked: false, + }, +]; +``` + +An array of settings objects. Each object will used to render a `ToggleControl` for that setting. ### fetchSearchSuggestions @@ -75,3 +87,5 @@ The function callback will receive the selected item, or Null. - Type: `Function` - Required: No + +Call when any of the settings supplied as `currentSettings` are changed/toggled.