diff --git a/README.md b/README.md index f7cab56cf..f8bab0ad8 100644 --- a/README.md +++ b/README.md @@ -66,11 +66,11 @@ The [custom editor example](https://github.com/plotly/react-chart-editor/tree/ma ### General-purpose Containers -* ``: renders as a generic rectangular container with special handling for collapsing/expanding child ``s and optionally an 'add' button for creating them * ``: renders as a sidebar selector menu for ``s -* ``: collapsable container within a `` -* `
`: uncollapsable container within a `` or `` -* ``: a `SectionHeader` to use separately with custom layouts. +* ``: renders as a generic rectangular container with special handling for collapsing/expanding child ``s and optionally an 'add' button for creating them, has special [visibility rules](https://github.com/plotly/react-chart-editor/tree/master/src/components/containers/_tests_/ConnectedContainersVisibility-test.js) that depend on plotly figure +* ``: collapsable container within a ``, has special [visibility rules](https://github.com/plotly/react-chart-editor/tree/master/src/components/containers/_tests_/ConnectedContainersVisibility-test.js) that depend on plotly figure +* ``: uncollapsable container within a `` or ``, has special [visibility rules](https://github.com/plotly/react-chart-editor/tree/master/src/components/containers/_tests_/ConnectedContainersVisibility-test.js) that depend on plotly figure +* ``, ``, `
`: same as `PlotlyPanel`, `PlotlyFold`, `PlotlySection`, but there are no special visibility rules, those containers [always show, and always show their children](https://github.com/plotly/react-chart-editor/tree/master/src/components/containers/_tests_/UnconnectedContainersVisibility-test.js), but Fold does not have the canDelete functionality as its context related * ``: wraps any item you would like to see appear in the sidebar menu. ### General-purpose Fields diff --git a/examples/custom/src/CustomEditor.js b/examples/custom/src/CustomEditor.js index 80592b790..e646d84a3 100644 --- a/examples/custom/src/CustomEditor.js +++ b/examples/custom/src/CustomEditor.js @@ -3,13 +3,13 @@ import { Flaglist, ColorPicker, ColorscalePicker, - Fold, + PlotlyFold, PanelMenuWrapper, TextEditor, Radio, Dropdown, Info, - Section, + PlotlySection, Numeric, LayoutPanel, Button, @@ -22,16 +22,16 @@ export default class CustomEditor extends Component { return ( -
+ -
+
- + { - // At least one of the direct children of Fold must have an attr prop - // for the Fold to display itself + // At least one of the direct children of PlotlyFold must have an attr prop + // for the PlotlyFold to display itself }

@@ -42,7 +42,7 @@ export default class CustomEditor extends Component { This is an Info component.

-
+ -
-
+ +