added HtmlElement class

This commit is contained in:
Jorijn van der Graaf 2025-02-12 23:06:56 +01:00
commit 9ee52266b5
8 changed files with 55 additions and 38 deletions

View file

@ -1,7 +1,8 @@
import Crafter.CppDOM;
using namespace Crafter::CppDOM::Bindings;
int main(){
void* body = Crafter::CppDOM::Bindings::GetElementById("body");
Crafter::CppDOM::Bindings::SetInnerHTML(body, "Hello World!");
Crafter::CppDOM::Bindings::FreeJs(body);
void* body = GetElementById("body");
SetInnerHTML(body, "Hello World!");
FreeJs(body);
}

View file

@ -14,7 +14,7 @@
"type": "executable",
"dependencies": [
{
"path":"/home/jorijn/repos/Crafter.CppDOM/project.json",
"path":"../../project.json",
"configuration":"debug"
}
]