Debian Codegraph @

packages/tree-extension/schema/widget.json

raw
1 {
2 "title": "File Browser Widget",
3 "description": "File Browser widget settings.",
4 "jupyter.lab.toolbars": {
5 "FileBrowser": [
6 { "name": "spacer", "type": "spacer", "rank": 900 },
7 {
8 "name": "toggle-file-filter",
9 "label": "",
10 "command": "filebrowser:toggle-file-filter",
11 "rank": 990
12 },
13 { "name": "new-dropdown", "rank": 1000 },
14 { "name": "uploader", "rank": 1010 },
15 { "name": "refresh", "command": "filebrowser:refresh", "rank": 1020 }
16 ]
17 },
18 "jupyter.lab.transform": true,
19 "properties": {
20 "toolbar": {
21 "title": "File browser toolbar items",
22 "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the uploader button:\n{\n \"toolbar\": [\n {\n \"name\": \"uploader\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:",
23 "items": {
24 "$ref": "#/definitions/toolbarItem"
25 },
26 "type": "array",
27 "default": []
28 }
29 },
30 "additionalProperties": false,
31 "type": "object",
32 "definitions": {
33 "toolbarItem": {
34 "properties": {
35 "name": {
36 "title": "Unique name",
37 "type": "string"
38 },
39 "args": {
40 "title": "Command arguments",
41 "type": "object"
42 },
43 "command": {
44 "title": "Command id",
45 "type": "string",
46 "default": ""
47 },
48 "disabled": {
49 "title": "Whether the item is ignored or not",
50 "type": "boolean",
51 "default": false
52 },
53 "icon": {
54 "title": "Item icon id",
55 "description": "If defined, it will override the command icon",
56 "type": "string"
57 },
58 "label": {
59 "title": "Item label",
60 "description": "If defined, it will override the command label",
61 "type": "string"
62 },
63 "type": {
64 "title": "Item type",
65 "type": "string",
66 "enum": ["command", "spacer"]
67 },
68 "rank": {
69 "title": "Item rank",
70 "type": "number",
71 "minimum": 0,
72 "default": 50
73 }
74 },
75 "required": ["name"],
76 "additionalProperties": false,
77 "type": "object"
78 }
79 }
80 }