Created HtmlElement (markdown)
parent
41c2ddf130
commit
eaad5b6e64
1 changed files with 17 additions and 0 deletions
17
HtmlElement.md
Normal file
17
HtmlElement.md
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
```cpp
|
||||||
|
namespace Crafter::CppDOM {
|
||||||
|
export class HtmlElement {
|
||||||
|
public:
|
||||||
|
void* const ptr;
|
||||||
|
inline HtmlElement(const char* id, std::size_t idLenght);
|
||||||
|
inline HtmlElement(const std::string& id); }
|
||||||
|
inline void SetInnerHTML(const char* html, std::size_t htmlLenght); }
|
||||||
|
inline void SetInnerHTML(const std::string& html);
|
||||||
|
inline ~HtmlElement();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
The ``HtmlElement`` is an abstraction layer of HTML elements and bindings related to them.
|
||||||
|
|
||||||
|
It is generally recommended to use this over raw bindings as this enforces memory safety with the destructor and is easier to use.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue