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: AttrValueid of the <textarea> itself — consumer CSS and tests key on it.
mirror: MirrorThe 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: ClassesExtra classes for the positioned container.
textarea_ref: NodeRef§mirror_ref: NodeRef§placeholder: AttrValueThe 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: boolWhether 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: ChildrenExtra nodes inside the positioned container, e.g. CodeEditor’s
minimum-height sizer.
Trait Implementations§
Source§impl PartialEq for MirroredTextareaProps
impl PartialEq for MirroredTextareaProps
Source§impl Properties for MirroredTextareaProps
impl Properties for MirroredTextareaProps
impl StructuralPartialEq for MirroredTextareaProps
Auto Trait Implementations§
impl !RefUnwindSafe for MirroredTextareaProps
impl !Send for MirroredTextareaProps
impl !Sync for MirroredTextareaProps
impl !UnwindSafe for MirroredTextareaProps
impl Freeze for MirroredTextareaProps
impl Unpin for MirroredTextareaProps
impl UnsafeUnpin for MirroredTextareaProps
Blanket Implementations§
impl<Token, Builder, How> AllPropsFor<Builder, How> for Tokenwhere
Builder: Buildable<Token>,
<Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,
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
impl<T> HasAllProps<(), T> for T
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> ⓘ
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> ⓘ
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 moreSource§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
self to a value of a Properties struct.