Implement error handling #41
No files matched your search
@@ -0,0 +1,6 @@
|
|||||||
|
mod multi;
|
||||||
|
mod single;
|
||||||
|
|
||||||
|
pub use {
|
||||||
|
multi::*, single::*
|
||||||
|
};
|
||||||
@@ -2,8 +2,8 @@ use crate::common::ValueType;
|
|||||||
use crate::components::utils::create_unique_id;
|
use crate::components::utils::create_unique_id;
|
||||||
use leptos::prelude::*;
|
use leptos::prelude::*;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
use super::utils::use_selectable_list;
|
||||||
use crate::components::ValidationState;
|
use crate::components::ValidationState;
|
||||||
use crate::components::lists::use_selectable_list;
|
|
||||||
|
|
||||||
/// # Checkbox Component
|
/// # Checkbox Component
|
||||||
/// This component should only be used from within a [`CheckboxList`] component.
|
/// This component should only be used from within a [`CheckboxList`] component.
|
||||||
@@ -81,8 +81,6 @@ pub fn Checkbox(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// # Checkbox List Component
|
/// # Checkbox List Component
|
||||||
/// This component creates a list of checkboxes, each with a specific value. The values are passed
|
/// This component creates a list of checkboxes, each with a specific value. The values are passed
|
||||||
/// through a prop rather than manually creating children.
|
/// through a prop rather than manually creating children.
|
||||||
@@ -3,7 +3,7 @@ use crate::components::utils::create_unique_id;
|
|||||||
use leptos::prelude::*;
|
use leptos::prelude::*;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use crate::components::ValidationState;
|
use crate::components::ValidationState;
|
||||||
use crate::components::lists::use_selectable_list;
|
use super::utils::use_selectable_list;
|
||||||
|
|
||||||
/// # Chip Component
|
/// # Chip Component
|
||||||
///
|
///
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
mod utils;
|
||||||
|
mod checkbox;
|
||||||
|
mod chips;
|
||||||
|
|
||||||
|
pub use checkbox::*;
|
||||||
|
pub use chips::*;
|
||||||
File renamed without changes.
@@ -0,0 +1,5 @@
|
|||||||
|
pub mod radio;
|
||||||
|
pub mod select;
|
||||||
|
|
||||||
|
pub use radio::*;
|
||||||
|
pub use select::*;
|
||||||
File renamed without changes.
File renamed without changes.
@@ -1,20 +1,17 @@
|
|||||||
mod action_button;
|
mod action_button;
|
||||||
mod banner;
|
mod banner;
|
||||||
mod checkbox;
|
|
||||||
mod chips;
|
|
||||||
mod dashboard_button;
|
mod dashboard_button;
|
||||||
mod loading;
|
mod loading;
|
||||||
mod multi_entry;
|
mod multi_entry;
|
||||||
mod panel;
|
mod panel;
|
||||||
mod radio;
|
|
||||||
mod row;
|
mod row;
|
||||||
mod select;
|
|
||||||
mod text_field;
|
mod text_field;
|
||||||
mod utils;
|
mod utils;
|
||||||
mod validated_form;
|
mod validated_form;
|
||||||
mod lists;
|
mod lists;
|
||||||
|
|
||||||
pub use self::{
|
pub use self::{
|
||||||
action_button::*, banner::*, checkbox::*, chips::*, dashboard_button::*, loading::*,
|
action_button::*, banner::*, dashboard_button::*, lists::*,
|
||||||
multi_entry::*, panel::*, radio::*, row::*, select::*, text_field::*, validated_form::*
|
loading::*, multi_entry::*, panel::*, row::*, text_field::*,
|
||||||
|
validated_form::*
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user