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 { "name": "fileNameSearcher", "rank": 950, "disabled": true },
8 { "name": "new-dropdown", "rank": 1000 },
9 { "name": "uploader", "rank": 1010 },
10 { "name": "refresh", "command": "filebrowser:refresh", "rank": 1020 }
11 ]
12 },
13 "jupyter.lab.transform": true,
14 "properties": {
15 "toolbar": {
16 "title": "File browser toolbar items",
17 "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:",
18 "items": {
19 "$ref": "#/definitions/toolbarItem"
20 },
21 "type": "array",
22 "default": []
23 }
24 },
25 "additionalProperties": false,
26 "type": "object",
27 "definitions": {
28 "toolbarItem": {
29 "properties": {
30 "name": {
31 "title": "Unique name",
32 "type": "string"
33 },
34 "args": {
35 "title": "Command arguments",
36 "type": "object"
37 },
38 "command": {
39 "title": "Command id",
40 "type": "string",
41 "default": ""
42 },
43 "disabled": {
44 "title": "Whether the item is ignored or not",
45 "type": "boolean",
46 "default": false
47 },
48 "icon": {
49 "title": "Item icon id",
50 "description": "If defined, it will override the command icon",
51 "type": "string"
52 },
53 "label": {
54 "title": "Item label",
55 "description": "If defined, it will override the command label",
56 "type": "string"
57 },
58 "type": {
59 "title": "Item type",
60 "type": "string",
61 "enum": ["command", "spacer"]
62 },
63 "rank": {
64 "title": "Item rank",
65 "type": "number",
66 "minimum": 0,
67 "default": 50
68 }
69 },
70 "required": ["name"],
71 "additionalProperties": false,
72 "type": "object"
73 }
74 }
75 }