Empirical
|
Div Widgets maintain an ordered collection of other widgets in an HTML div. More...
Go to the source code of this file.
Classes | |
class | emp::web::internal::DivInfo |
class | emp::web::Div |
A widget to track a div in an HTML file, and all of its contents. More... | |
Namespaces | |
emp | |
If we are in emscripten, make sure to include the header. | |
emp::web | |
emp::web::internal | |
Div Widgets maintain an ordered collection of other widgets in an HTML div.
To create a Div:
emp::web::Div my_div("name");
To use a Div:
my_div << "Add this text!" << emp::web::Image("my_image.png") << "<br>";
To register a Div in a Document:
my_doc << my_div;