Struct leptos_use::UseCssVarOptions
source · pub struct UseCssVarOptions<El, T>{ /* private fields */ }
Expand description
Options for use_css_var_with_options
.
Implementations§
source§impl<El, T> UseCssVarOptions<El, T>
impl<El, T> UseCssVarOptions<El, T>
sourcepub fn target<New__El, New__T>(
self,
value: New__El
) -> UseCssVarOptions<New__El, New__T>
pub fn target<New__El, New__T>( self, value: New__El ) -> UseCssVarOptions<New__El, New__T>
The target element to read the variable from and set the variable on.
Defaults to the document.documentElement
.
sourcepub fn initial_value(self, value: impl Into<String>) -> Self
pub fn initial_value(self, value: impl Into<String>) -> Self
The initial value of the variable before it is read. Also the default value if the variable isn’t defined on the target. Defaults to “”.
Trait Implementations§
Auto Trait Implementations§
impl<El, T> Freeze for UseCssVarOptions<El, T>where
El: Freeze,
impl<El, T> RefUnwindSafe for UseCssVarOptions<El, T>where
El: RefUnwindSafe,
T: RefUnwindSafe,
impl<El, T> Send for UseCssVarOptions<El, T>
impl<El, T> Sync for UseCssVarOptions<El, T>
impl<El, T> Unpin for UseCssVarOptions<El, T>
impl<El, T> UnwindSafe for UseCssVarOptions<El, T>where
El: 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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more