5 namespace Materializers
10 return parent.appendElement(htmlElement);
16 auto elem = parent.makeElement(htmlElement);
17 parent.val().template call<Nui::val>(
"appendChild", elem->val());
23 return parent.insert(where, htmlElement);
28 return element.replaceElement(htmlElement);
33 return element.emplaceElement(htmlElement);
38 return element.template shared_from_base<std::decay_t<decltype(element)>>();
auto appendMaterialize(auto &parent, auto const &htmlElement)
Creates new actual element and makes it a child of the given parent.
Definition: materialize.hpp:8
auto emplaceMaterialize(auto &element, auto const &htmlElement)
Replaces the given element with the new one.
Definition: materialize.hpp:31
auto inplaceMaterialize(auto &element, auto const &)
Used for elements that dont have a direct parent.
Definition: materialize.hpp:36
auto replaceMaterialize(auto &element, auto const &htmlElement)
Replaces the given element with the new one.
Definition: materialize.hpp:26
auto insertMaterialize(std::size_t where, auto &parent, auto const &htmlElement)
Inserts new element at the given position of the given parent.
Definition: materialize.hpp:21
auto fragmentMaterialize(auto &parent, auto const &htmlElement)
Similar to appendMaterialize, but the new element is not added to the children list.
Definition: materialize.hpp:14
Definition: file_dialog.hpp:6
auto renderElement(Renderer const &gen, auto &element, auto const &htmlElement)
Definition: materialize.hpp:56
RendererType
Definition: materialize.hpp:43
Definition: materialize.hpp:52
std::size_t metadata
Definition: materialize.hpp:54
RendererType type
Definition: materialize.hpp:53