Archived
generated from mitchell/rust_template
Conditional Rendering WORKS!
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user