11 std::function<void()> onClick;
12 std::string functionName;
13 std::string moduleName;
16 MenuItem(
const std::wstring& text,
const std::function<
void()>& onClick);
23 MenuItem(
const std::wstring& text,
const std::string& functionName,
const std::string& moduleName);
25 void processMessage()
override;
27 json::JSONBuilder getStructure()
const override;