From 155846852646db48f906ea8de65fdde503414f05 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sun, 7 Apr 2024 23:07:41 -0600 Subject: [PATCH] Add HTML data for the custom incrementer element --- .vscode/components.html-data.json | 19 +++++++++++++++++++ .vscode/settings.json | 7 +++++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .vscode/components.html-data.json diff --git a/.vscode/components.html-data.json b/.vscode/components.html-data.json new file mode 100644 index 0000000..74f7942 --- /dev/null +++ b/.vscode/components.html-data.json @@ -0,0 +1,19 @@ +{ + "version": 1.1, + "tags": [ + { + "name": "dd-incrementer", + "description": "A number input that allows more flexible increase/decrease buttons", + "attributes": [ + { "name": "value", "description": "The initial value to put in the input" }, + { "name": "name", "description": "The form name to use when this input is used to submit data" }, + { "name": "min", "description": "The minimum value that this input can contain" }, + { "name": "max", "description": "The maximum value that this input can contain" }, + { "name": "smallStep", "description": "The value that the input is changed by when clicking a delta button or using the up/down arrow key" }, + { "name": "largeStep", "description": "The value that the input is changed by when clicking a delta button with control held or using the page up/ page down arrow key" } + ] + } + ], + "globalAttributes": [], + "valueSets": [] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 36a383b..9cd44b8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,5 +12,8 @@ "node_modules": true, "packs": true, ".gitattributes": true, - } -} \ No newline at end of file + }, + "html.customData": [ + "./.vscode/components.html-data.json" + ] +}