Template Class TypedInput#
Defined in File TypedInput.h
Inheritance Relationships#
Base Type#
public Karana::WebUI::Widget(Class Widget)
Derived Types#
public Karana::WebUI::NumericTypedInput< int64_t >(Template Class NumericTypedInput)public Karana::WebUI::NumericTypedInput< double >(Template Class NumericTypedInput)public Karana::WebUI::NumericTypedInput< InputType >(Template Class NumericTypedInput)
Class Documentation#
-
template<typename InputType>
class TypedInput : public Karana::WebUI::Widget# Widget displaying a Generic Input field (e.g., text, double, str) with input validation.
Uses a single State object to store the value, and sets type via a constructor parameter.
Subclassed by Karana::WebUI::NumericTypedInput< int64_t >, Karana::WebUI::NumericTypedInput< double >, Karana::WebUI::NumericTypedInput< InputType >
Public Functions
-
TypedInput(Router &router, std::string_view text, std::string_view tooltip, std::function<void(InputType)> on_change = {}, int64_t debounce_ms = 500, const Karana::Core::ks_ptr<State> &value_state = nullptr)#
Constructor for the typed input widget.
- Parameters:
router – The connection router to use
text – Legend text displayed on the widget
tooltip – The tooltip to show on hover
on_change – Callback for when the widget state is modified
debounce_ms – Delay in milliseconds before submitting numeric edits
value_state – State for synchronizing the slider’s value
-
virtual ~TypedInput()#
TypedInput destructor.
-
TypedInput(Router &router, std::string_view text, std::string_view tooltip, std::function<void(InputType)> on_change = {}, int64_t debounce_ms = 500, const Karana::Core::ks_ptr<State> &value_state = nullptr)#