Struct leptos_use::UseClipboardOptions
source · pub struct UseClipboardOptions { /* private fields */ }
Expand description
Options for use_clipboard_with_options
.
Implementations§
source§impl UseClipboardOptions
impl UseClipboardOptions
sourcepub fn read(self, value: bool) -> Self
pub fn read(self, value: bool) -> Self
When true
event handlers are added so that the returned signal text
is updated whenever the clipboard changes.
Defaults to false
.
Please note that clipboard changes are only detected when copying or cutting text inside the same document.
sourcepub fn copied_reset_delay(self, value: f64) -> Self
pub fn copied_reset_delay(self, value: f64) -> Self
After how many milliseconds after copying should the returned signal copied
be set to false
?
Defaults to 1500.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UseClipboardOptions
impl RefUnwindSafe for UseClipboardOptions
impl Send for UseClipboardOptions
impl Sync for UseClipboardOptions
impl Unpin for UseClipboardOptions
impl UnwindSafe for UseClipboardOptions
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