Struct BlockEditorProps
pub struct BlockEditorProps {
pub rich: Bound<RichText>,
pub markdown: Bound<String>,
pub value: Option<RichText>,
pub placeholder: Option<String>,
pub open_reference: Event,
}Expand description
A document: its paragraphs with their formatting, and each reference in it as the reader’s own inline view of what it refers to (a person with their name, a channel, a task with its number), resolved under their permissions. Bound to a document’s field it edits it, each edit written back as the value now reads and a change from elsewhere shown when the person is not typing there; given a value it shows that, read-only, and activating a reference opens it.
Fields§
§rich: Bound<RichText>The document it edits, as its paragraphs (a RichText field).
markdown: Bound<String>The document it edits, as Markdown (a Text field), the same text round-tripped.
value: Option<RichText>Rich text it shows read-only, when it binds nothing.
placeholder: Option<String>What to type, shown while the editor is empty.
open_reference: EventA reference in the text was activated, carrying the reference. Without one, the reference is opened.
Trait Implementations§
§impl Component for BlockEditorProps
impl Component for BlockEditorProps
fn describe() -> Description
§fn from_source(source: &mut dyn Source) -> Result<BlockEditorProps, Error>
fn from_source(source: &mut dyn Source) -> Result<BlockEditorProps, Error>
source gives. Read more§impl Default for BlockEditorProps
impl Default for BlockEditorProps
§fn default() -> BlockEditorProps
fn default() -> BlockEditorProps
Auto Trait Implementations§
impl Freeze for BlockEditorProps
impl !RefUnwindSafe for BlockEditorProps
impl !Send for BlockEditorProps
impl !Sync for BlockEditorProps
impl Unpin for BlockEditorProps
impl UnsafeUnpin for BlockEditorProps
impl !UnwindSafe for BlockEditorProps
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more