10 #ifndef EMP_WEB_COMMANDS_H 11 #define EMP_WEB_COMMANDS_H 24 Close(
const std::string &
id) : close_id(id) { ; }
27 if (w.
id == close_id) {
34 const std::string &
GetID()
const {
return close_id; }
42 PrintStr(
const std::string & _s) : str(_s) { ; }
49 const std::string &
GetStr()
const {
return str; }
Definition: commands.h:20
Close(const std::string &id)
Definition: commands.h:24
PrintStr(const std::string &_s)
Definition: commands.h:42
const std::string & GetStr() const
Definition: commands.h:49
static const PrintStr endl("<br>")
Pre-define emp::endl to insert a "<br>" and thus acting like a newline.
If we are in emscripten, make sure to include the header.
Definition: array.h:37
const std::string & GetID() const
Definition: commands.h:34
bool Trigger(internal::WidgetInfo &w) const override
Definition: commands.h:26
The PrintStr command will print a pre-specified string to a widget.
Definition: commands.h:38
bool Trigger(internal::WidgetInfo &w) const override
Definition: commands.h:44