Class InputGroup#

Inheritance Relationships#

Base Type#

Class Documentation#

class InputGroup : public Karana::WebUI::Widget#

Simple container for input widgets that adds fancy borders and allows disabling.

Public Functions

InputGroup(Router &router, std::string_view title = "", const StyleMap &style = {})#

InputGroup constructor.

Parameters:
  • router – Used to establish the frontend connection

  • style – Map of camelCase css properties for the widget

virtual ~InputGroup()#

InputGroup destructor.

void addChild(const Karana::Core::ks_ptr<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.