diff --git a/src/components/lists/single/select.rs b/src/components/lists/single/select.rs index b20cddc..9ecdf20 100644 --- a/src/components/lists/single/select.rs +++ b/src/components/lists/single/select.rs @@ -20,7 +20,7 @@ fn validate(required: bool, value: String) -> ValidationState { /// by the `value` prop of the component. #[component] pub fn Select( - #[prop()] value_list: Vec, + #[prop(into)] value_list: Signal>, #[prop(into)] data_member: Signal, #[prop()] data_map: RwSignal>, #[prop(optional, into)] label: String, @@ -110,6 +110,7 @@ pub fn Select( {move || { value_list + .get() .iter() .map(move |value| { let display = value.to_owned(); diff --git a/src/components/multi_entry.rs b/src/components/multi_entry.rs index 829c057..6a6ce80 100644 --- a/src/components/multi_entry.rs +++ b/src/components/multi_entry.rs @@ -65,6 +65,8 @@ fn new_entry() -> ValueType { /// `first_name` and `last_name` keys within that `Entry`. #[component] pub fn MultiEntry( + #[prop(into)] label: Signal, + #[prop(optional, into)] description: Signal, /// The data member that contains the list of entries within the `data_map`. #[prop(into)] data_member: String, @@ -101,7 +103,11 @@ pub fn MultiEntry( let add_entry = move |_| data_reactive.update(|list| list.push(new_entry())); view! { -
+
+ {label} + + {description} +
// Render the entries impl IntoView { required=true /> - -