top-bar.json 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. "title": "Top Bar",
  3. "description": "Top Bar settings.",
  4. "jupyter.lab.toolbars": {
  5. "TopBar": [
  6. {
  7. "name": "spacer",
  8. "type": "spacer",
  9. "rank": 50
  10. }
  11. ]
  12. },
  13. "jupyter.lab.transform": true,
  14. "properties": {
  15. "toolbar": {
  16. "title": "Top bar items",
  17. "description": "Note: To disable a item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the user menu:\n{\n \"toolbar\": [\n {\n \"name\": \"user-menu\",\n \"disabled\": true\n }\n ]\n}\n\nTop bar 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. "caption": {
  59. "title": "Item caption",
  60. "description": "If defined, it will override the command caption",
  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. }