plugin.json 2.0 KB

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