22 template <
typename T,
typename... Attributes>
25 return [&model, ... attributes = std::forward<Attributes>(attributes)]<
typename... Children>(
26 Children&&... children)
mutable {
27 using Nui::Elements::input;
34 std::move(attributes)...,
38 [&model](
auto const& event) {
39 model =
event[
"target"][
"value"].template as<std::string>();
41 }(std::forward<Children>(children)...);
Definition: observed_value.hpp:1202
Definition: attribute_factory.hpp:14
Definition: dialog.hpp:11
constexpr auto TextInput(Observed< T > &model, Attributes &&... attributes)
This component can be used like this TextInput(attributes...)(children...) instead of the C{}() synta...
Definition: text_input.hpp:23