Skip to content

Commit

Permalink
#2274 Document enableFocusOnMount config field
Browse files Browse the repository at this point in the history
Signed-off-by: CTomlyn <[email protected]>
  • Loading branch information
tomlyn committed Dec 16, 2024
1 parent 2c41ad5 commit 03f047d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/pages/03.02.01-canvas-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ This is a boolean. The default is false. When set to true, Common Canvas will ov

## Canvas Content

#### **enableFocusOnMount**
This is a boolean. The default is true. When set to true, the keyboard focus will automatically be set on the flow editor when Common Canvas first appears. This means, keyboard shortcut operations on the flow editor, and it contents, will be executed without the user having to click on the flow editor to get focus to be moved there. If set to false, Common Canvas makes no change to the focus so the application can set the focus wherever it wants.

#### **emptyCanvasContent**
This is a JSX or HTML snippet that contains some text or any elements (such as an image) that you want to display when the canvas is empty, that is, when it doesn't have any nodes or comments. The default behavior if this config parameter is not provided is that Common Canvas will display an image and message saying: "Your flow is empty!".

Expand Down

0 comments on commit 03f047d

Please sign in to comment.