Class Layout#

Inheritance Relationships#

Base Type#

Class Documentation#

class Layout : public Karana::WebUI::Widget#

Simple container for widgets.

Public Functions

Layout(Router &router, const StyleMap &style = {})#

Layout constructor.

Parameters:
  • router – Used to establish the frontend connection

  • style – Map of camelCase css properties for the widget

virtual ~Layout()#

Layout destructor.

void addChild(const Widget &widget)#

Add a widget as a child DOM element.

Parameters:

widget – The widget to add

Protected Functions

virtual void _onConnect(int client_id) override#

Called upon a client connecting.

This can be overridden to implement custom behavior.

Parameters:

client_id – Unique id for the client.