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.)
This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2019 Michigan State University MIT Software license; see doc/LICENSE.md
When printed to the web page, these internal widgets are presented in order.
Defines
-
INCLUDE_EMP_WEB_ELEMENT_HPP_GUARD
-
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.