Class Widget#

Inheritance Relationships#

Derived Types#

Class Documentation#

class Widget#

Base class for Router Channels with a DOM presence.

Subclassed by Karana::WebUI::IFrame, Karana::WebUI::Markdown, Karana::WebUI::TreeView

Public Functions

Widget(const Karana::Core::ks_ptr<Channel> &channel)#

Widget constructor.

Parameters:

channel – The Router Channel to use

virtual ~Widget()#

Widget destructor.

const Karana::Core::ks_ptr<Channel> &channel() const#

Get a handle to the widget’s channel.

Returns:

The channel

std::string_view domId() const#

Get the id of the widget’s containing div in the DOM.

Returns:

The id