1#ifndef SENSESP_UI_UI_BUTTON_H
2#define SENSESP_UI_UI_BUTTON_H
23 UIButton(String title, String name,
bool must_confirm)
45 static UIButton*
add(String name, String title,
bool must_confirm =
true) {
48 "Duplicate button name '%s' replaces the earlier button",
53 "Button name '%s' exceeds %u characters and is hidden "
57 auto new_cmd = std::make_shared<UIButton>(title, name, must_confirm);
80 static std::map<String, std::shared_ptr<UIButton>>
ui_buttons_;
A base class which allow observers to attach callbacks to themselves. The callbacks will be called wh...