feat: update checkbox component to use open-ended structures

Commit also includes changes to other components that make unused props optional.
This commit is contained in:
alphafetus committed 2025-09-25 12:31:47 -04:00
1 parent b460c3b3fd
commit 059f904f5d
7 files changed
+80 -40

No files matched your search

+2 -3
View File
@@ -10,14 +10,13 @@ use crate::components::ValueType;
/// by the `value` prop of the component.
#[component]
pub fn Select(
#[prop(default = vec!["Test Value".into()])] value_list: Vec<String>,
#[prop(default = RwSignal::new("".into()))] value: RwSignal<String>,
#[prop()] value_list: Vec<String>,
#[prop(optional)] value: RwSignal<String>,
#[prop(into)] data_member: String,
#[prop()] data_map: RwSignal<HashMap<String, ValueType>>,
#[prop(optional, into)] label: String,
#[prop(default = RwSignal::new(false))] disabled: RwSignal<bool>,
) -> impl IntoView {
let on_change = {
let data_member = data_member.clone();
move |e: Targeted<Event, HtmlSelectElement>| {