Skip to main content

MirroredTextareaProps

Struct MirroredTextareaProps 

Source
pub struct MirroredTextareaProps {
Show 13 fields pub id: AttrValue, pub mirror: Mirror, pub mirror_id: Option<AttrValue>, pub class: Classes, pub textarea_ref: NodeRef, pub mirror_ref: NodeRef, pub placeholder: AttrValue, pub is_empty: bool, pub disabled: bool, pub oninput: Callback<InputEvent>, pub onkeydown: Callback<KeyboardEvent>, pub onscroll: Callback<Event>, pub children: Children,
}

Fields§

§id: AttrValue

id of the <textarea> itself — consumer CSS and tests key on it.

§mirror: Mirror

The mirror’s content: the same characters the textarea holds, as plain text, or marked up (CodeEditor passes highlighted spans). A stale mirror means a caret that drifts from the glyphs, so this is re-rendered unconditionally — see Mirror.

§mirror_id: Option<AttrValue>

id of the mirror <pre>, for consumers that style it directly.

§class: Classes

Extra classes for the positioned container.

§textarea_ref: NodeRef§mirror_ref: NodeRef§placeholder: AttrValue

The placeholder ATTRIBUTE, which exists for assistive tech: it is painted transparent, because a CSS-content label cannot be written into an attribute and so cannot be localized. The text a sighted user reads comes from the mirror instead — see Self::is_empty.

§is_empty: bool

Whether Self::mirror is empty, which the component cannot see for itself (the mirror is opaque Html). Tags the mirror with is-empty so a consumer’s stylesheet can supply placeholder text through content, and therefore through the intl label mechanism, rather than through the untranslatable attribute.

§disabled: bool§oninput: Callback<InputEvent>§onkeydown: Callback<KeyboardEvent>§onscroll: Callback<Event>§children: Children

Extra nodes inside the positioned container, e.g. CodeEditor’s minimum-height sizer.

Trait Implementations§

Source§

impl PartialEq for MirroredTextareaProps

Source§

fn eq(&self, other: &MirroredTextareaProps) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Properties for MirroredTextareaProps

Source§

type Builder = MirroredTextareaPropsBuilder

Builder that will be used to construct properties
Source§

fn builder() -> Self::Builder

Entrypoint for building properties
Source§

impl StructuralPartialEq for MirroredTextareaProps

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<Token, Builder, How> AllPropsFor<Builder, How> for Token
where Builder: Buildable<Token>, <Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> HasAllProps<(), T> for T

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> IntoPropValue<Option<T>> for T

Source§

fn into_prop_value(self) -> Option<T>

Convert self to a value of a Properties struct.
Source§

impl<T> IntoPropValue<T> for T

Source§

fn into_prop_value(self) -> T

Convert self to a value of a Properties struct.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more