pub struct UseTextareaAutosizeOptions<T>{ /* private fields */ }
Expand description
Options for crate::use_textarea_autosize_with_options
.
Implementations§
Source§impl<T> UseTextareaAutosizeOptions<T>
impl<T> UseTextareaAutosizeOptions<T>
Sourcepub fn content(self, value: impl Into<MaybeRwSignal<String>>) -> Self
pub fn content(self, value: impl Into<MaybeRwSignal<String>>) -> Self
Textarea content
Sourcepub fn watch(self, value: impl Fn() + 'static) -> Self
pub fn watch(self, value: impl Fn() + 'static) -> Self
Watch sources that should trigger a textarea resize
Sourcepub fn on_resize(self, value: impl Fn() + 'static) -> Self
pub fn on_resize(self, value: impl Fn() + 'static) -> Self
Function called when the textarea size changes
Sourcepub fn style_prop(self, value: impl Into<String>) -> Self
pub fn style_prop(self, value: impl Into<String>) -> Self
Specify the style property that will be used to manipulate height.
Should be "height"
or "min-height"
. Default value is "height"
.
Source§impl<T> UseTextareaAutosizeOptions<T>
impl<T> UseTextareaAutosizeOptions<T>
Sourcepub fn style_target<NewT>(
self,
style_target: impl Into<ElementMaybeSignal<NewT, Element>>,
) -> UseTextareaAutosizeOptions<NewT>
pub fn style_target<NewT>( self, style_target: impl Into<ElementMaybeSignal<NewT, Element>>, ) -> UseTextareaAutosizeOptions<NewT>
List of elementss that should not trigger the callback. Defaults to []
.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for UseTextareaAutosizeOptions<T>where
T: Freeze,
impl<T> !RefUnwindSafe for UseTextareaAutosizeOptions<T>
impl<T> !Send for UseTextareaAutosizeOptions<T>
impl<T> !Sync for UseTextareaAutosizeOptions<T>
impl<T> Unpin for UseTextareaAutosizeOptions<T>where
T: Unpin,
impl<T> !UnwindSafe for UseTextareaAutosizeOptions<T>
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