32 #ifndef EMP_WEB_BUTTON_H 33 #define EMP_WEB_BUTTON_H 63 if (callback_id) emp::JSDelete(callback_id);
66 std::string
TypeName()
const override {
return "ButtonInfo"; }
75 virtual void GetHTML(std::stringstream & HTML)
override {
78 if (title !=
"") HTML <<
" title=\"" << title <<
"\"";
79 HTML <<
" id=\"" <<
id <<
"\"";
80 HTML <<
" onclick=\"" << onclick_info <<
"\"";
81 HTML <<
">" << label <<
"</button>";
107 virtual std::string
GetType()
override {
return "web::ButtonInfo"; }
123 Button(
const std::function<
void()> & in_cb,
const std::string & in_label,
124 const std::string & in_id=
"")
std::string to_string(ALL_TYPES &&...all_values)
Definition: string_utils.h:511
If we are in emscripten, make sure to include the header.
Definition: array.h:37
#define emp_assert(...)
Definition: assert.h:199