Skip to content

Commit a0859fb

Browse files
committed
Document order in plugin config block
1 parent 33f36d8 commit a0859fb

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/configuration/ViewerConfiguration.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,16 @@ In general, the procedure for enabling a plugin is:
168168

169169
* Make sure the plugin is compiled into the application (see [Build-time configuration](#build-time configuration)).
170170
* In the `plugins` section of `config.json`, below `common` (or `mobile` and/or `desktop`), add an entry
171-
```json
172-
{
173-
"name": "<Plugin name>",
174-
"cfg": {
175-
<Plugin configuration props>
171+
```json
172+
{
173+
"name": "<Plugin name>",
174+
"cfg": {
175+
<Plugin configuration props>
176+
},
177+
"order": <render_order>
176178
}
177-
}
178-
```
179+
```
180+
where `order` is optional and denotes the render order, useful to control the tab-focus order. Default is `0`, can be an arbitrary positive or negative number.
179181
* For most plugins (i.e. those which launch as an explicit task in the viewer), add entries in `menuItems` and/or `toolbarItems` in the `TopBar` configuration. The format of these entires is as follows:
180182

181183
| Setting | Description |

0 commit comments

Comments
 (0)