MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / tableData

Function tableData

pj_dialog_host/tests/dialog_engine_test.cpp:324–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322
323namespace {
324nlohmann::json tableData(
325 const char* name, const std::vector<std::vector<std::string>>& rows, const std::vector<int>& selected) {
326 nlohmann::json d;
327 d[name]["headers"] = {"A", "B"};
328 d[name]["rows"] = rows;
329 d[name]["selected_rows"] = selected;
330 return d;
331}
332} // namespace
333
334// Selecting a row re-delivers identical rows under the same widget-data key.

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected