-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply new toolbar definition on DSV viewer
- Loading branch information
1 parent
23d6dde
commit 473479a
Showing
10 changed files
with
261 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"title": "CSV Viewer", | ||
"description": "CSV Viewer settings.", | ||
"jupyter.lab.toolbars": { | ||
"CSVTable": [{ "name": "delimiter", "rank": 10 }] | ||
}, | ||
"jupyter.lab.transform": true, | ||
"properties": { | ||
"toolbar": { | ||
"title": "CSV viewer toolbar items", | ||
"description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the delimiter selector item:\n{\n \"toolbar\": [\n {\n \"name\": \"delimiter\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", | ||
"items": { | ||
"$ref": "#/definitions/toolbarItem" | ||
}, | ||
"type": "array", | ||
"default": [] | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"definitions": { | ||
"toolbarItem": { | ||
"properties": { | ||
"name": { | ||
"title": "Unique name", | ||
"type": "string" | ||
}, | ||
"args": { | ||
"title": "Command arguments", | ||
"type": "object" | ||
}, | ||
"command": { | ||
"title": "Command id", | ||
"type": "string", | ||
"default": "" | ||
}, | ||
"disabled": { | ||
"title": "Whether the item is disabled or not", | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"icon": { | ||
"title": "Item icon id", | ||
"description": "If defined, it will override the command icon", | ||
"type": "string" | ||
}, | ||
"label": { | ||
"title": "Item icon label", | ||
"description": "If defined, it will override the command label", | ||
"type": "string" | ||
}, | ||
"type": { | ||
"title": "Item type", | ||
"type": "string", | ||
"enum": ["command", "spacer"] | ||
}, | ||
"rank": { | ||
"title": "Item rank", | ||
"type": "number", | ||
"minimum": 0 | ||
} | ||
}, | ||
"required": ["name"], | ||
"additionalProperties": false, | ||
"type": "object" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"title": "TSV Viewer", | ||
"description": "TSV Viewer settings.", | ||
"jupyter.lab.toolbars": { | ||
"TSVTable": [{ "name": "delimiter", "rank": 10 }] | ||
}, | ||
"jupyter.lab.transform": true, | ||
"properties": { | ||
"toolbar": { | ||
"title": "TSV viewer toolbar items", | ||
"description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the delimiter selector item:\n{\n \"toolbar\": [\n {\n \"name\": \"delimiter\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", | ||
"items": { | ||
"$ref": "#/definitions/toolbarItem" | ||
}, | ||
"type": "array", | ||
"default": [] | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"type": "object", | ||
"definitions": { | ||
"toolbarItem": { | ||
"properties": { | ||
"name": { | ||
"title": "Unique name", | ||
"type": "string" | ||
}, | ||
"args": { | ||
"title": "Command arguments", | ||
"type": "object" | ||
}, | ||
"command": { | ||
"title": "Command id", | ||
"type": "string", | ||
"default": "" | ||
}, | ||
"disabled": { | ||
"title": "Whether the item is disabled or not", | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"icon": { | ||
"title": "Item icon id", | ||
"description": "If defined, it will override the command icon", | ||
"type": "string" | ||
}, | ||
"label": { | ||
"title": "Item icon label", | ||
"description": "If defined, it will override the command label", | ||
"type": "string" | ||
}, | ||
"type": { | ||
"title": "Item type", | ||
"type": "string", | ||
"enum": ["command", "spacer"] | ||
}, | ||
"rank": { | ||
"title": "Item rank", | ||
"type": "number", | ||
"minimum": 0 | ||
} | ||
}, | ||
"required": ["name"], | ||
"additionalProperties": false, | ||
"type": "object" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.