Element.hpp

Element Widgets maintain an ordered collection of other widgets in a HTML element with any tag (e.g., div, footer, header, p, etc.)

When printed to the web page, these internal widgets are presented in order.

class Element : public Div
#include <Element.hpp>

A widget to track an element in an HTML file, and all of its contents.

Subclassed by CodeBlock, FontAwesomeIcon, LoadingIcon, ToggleSwitch

Public Functions

inline Element(const std::string &in_tag, const std::string &in_name = "")
Parameters:
  • in_tag – sets the html tag for used this object (i.e., div, footer, header, p, etc.)

  • in_name – sets the id of this html element

inline Element(const Widget &in)

Construct Element from a Widget.