Struct leptos_form_core::RenderProps
source · pub struct RenderProps<T: 'static, Config = ()> {
pub id: Option<Oco<'static, str>>,
pub name: Option<Oco<'static, str>>,
pub class: Option<Oco<'static, str>>,
pub style: Option<Oco<'static, str>>,
pub field_changed_class: Option<Oco<'static, str>>,
pub signal: T,
pub config: Config,
}
Expand description
Props provided during render to a type implementing FormField
.
Fields§
§id: Option<Oco<'static, str>>
§name: Option<Oco<'static, str>>
§class: Option<Oco<'static, str>>
§style: Option<Oco<'static, str>>
§field_changed_class: Option<Oco<'static, str>>
§signal: T
§config: Config
Implementations§
source§impl<T: 'static, Config> RenderProps<T, Config>
impl<T: 'static, Config> RenderProps<T, Config>
sourcepub fn builder() -> RenderPropsBuilder<T, Config, ((), (), (), (), (), (), ())>
pub fn builder() -> RenderPropsBuilder<T, Config, ((), (), (), (), (), (), ())>
Create a builder for building RenderProps
.
On the builder, call .id(...)
(optional), .name(...)
(optional), .class(...)
(optional), .style(...)
(optional), .field_changed_class(...)
(optional), .signal(...)
, .config(...)
to set the values of the fields.
Finally, call .build()
to create the instance of RenderProps
.
source§impl<T: PartialEq + 'static + Debug, Config> RenderProps<FormFieldSignal<T>, Config>
impl<T: PartialEq + 'static + Debug, Config> RenderProps<FormFieldSignal<T>, Config>
pub fn class_signal(&self) -> RwSignal<Option<Oco<'static, str>>>
Trait Implementations§
Auto Trait Implementations§
impl<T, Config> RefUnwindSafe for RenderProps<T, Config>where Config: RefUnwindSafe, T: RefUnwindSafe,
impl<T, Config = ()> !Send for RenderProps<T, Config>
impl<T, Config = ()> !Sync for RenderProps<T, Config>
impl<T, Config> Unpin for RenderProps<T, Config>where Config: Unpin, T: Unpin,
impl<T, Config> UnwindSafe for RenderProps<T, Config>where Config: UnwindSafe, T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more