Class DataTree#

Inheritance Relationships#

Base Type#

Class Documentation#

class DataTree : public Karana::WebUI::Widget#

Widget displaying data values in a tree.

Public Functions

DataTree(Router &router)#

DataTree constructor.

Parameters:

router – The connection router to use

virtual ~DataTree()#

DataTree destructor.

void setData(const nlohmann::json &data)#

Set the new data values.

Parameters:

data – A possibly nested Json object

Protected Functions

virtual void _onConnect(int client_id) override#

First setup on initial connection.

Parameters:

client_id – The ID of the client connecting.