Conditional Rendering WORKS!

This commit is contained in:
2024-06-18 12:57:56 -05:00
parent 835271cd22
commit da84bdbb27
18 changed files with 194 additions and 140 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ use super::{
};
use crate::{form::FormToolData, form_builder::FormBuilder, styles::FormStyle};
use leptos::{Signal, View};
use std::rc::Rc;
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
pub struct HiddenData {
@@ -12,7 +13,7 @@ pub struct HiddenData {
impl VanityControlData for HiddenData {
fn build_control<FS: FormStyle>(
fs: &FS,
control: ControlRenderData<FS, Self>,
control: Rc<ControlRenderData<FS, Self>>,
value_getter: Option<Signal<String>>,
) -> View {
fs.hidden(control, value_getter)