Class QuantityInput#

Inheritance Relationships#

Base Type#

Class Documentation#

class QuantityInput : public Karana::WebUI::Widget#

Widget displaying two HTML input elements: one for inputting numeric quantities, and one for a units string.

Uses a single State object with a numeric field value and a string field units.

Public Functions

QuantityInput(Router &router, std::string_view text, std::function<void(double, std::string_view)> on_change = {}, const Karana::Core::ks_ptr<State> &quantity_state = nullptr)#

QuantityInput constructor.

Parameters:
virtual ~QuantityInput()#

QuantityInput destructor.