From 1598081e3bfff1b165c99ae9d4837d7affe3ef17 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 13 Apr 2024 12:40:09 -0600 Subject: [PATCH] Add the icon element to the html-data spec --- .vscode/components.html-data.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.vscode/components.html-data.json b/.vscode/components.html-data.json index 74f7942..e1c3ebd 100644 --- a/.vscode/components.html-data.json +++ b/.vscode/components.html-data.json @@ -12,6 +12,14 @@ { "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" } ] + }, + { + "name": "dd-icon", + "description": "Loads an icon asynchronously, caching the result for future uses", + "attributes": [ + { "name": "name", "description": "The name of the icon, this is relative to the assets folder of the dotdungeon system" }, + { "name": "path", "description": "The full path of the icon, this will only be used if `name` isn't provided or fails to fetch." } + ] } ], "globalAttributes": [],