pub struct RichTextInputElement {
pub action_id: String,
pub initial_value: Option<RichTextBlock>,
pub dispatch_action_config: Option<DispatchActionConfig>,
pub focus_on_load: Option<bool>,
pub placeholder: Option<TextObject>,
pub min_lines: Option<u32>,
pub max_lines: Option<u32>,
/* private fields */
}Expand description
Fields§
§action_id: String§initial_value: Option<RichTextBlock>§dispatch_action_config: Option<DispatchActionConfig>§focus_on_load: Option<bool>§placeholder: Option<TextObject>§min_lines: Option<u32>§max_lines: Option<u32>Implementations§
Source§impl RichTextInputElement
impl RichTextInputElement
pub fn new(action_id: impl Into<String>) -> Self
pub fn initial_value(self, initial_value: RichTextBlock) -> Self
pub fn dispatch_action_config( self, dispatch_action_config: DispatchActionConfig, ) -> Self
pub fn focus_on_load(self, focus_on_load: bool) -> Self
pub fn placeholder(self, placeholder: impl Into<TextObject>) -> Self
pub fn min_lines(self, min_lines: u32) -> Self
pub fn max_lines(self, max_lines: u32) -> Self
Trait Implementations§
Source§impl Clone for RichTextInputElement
impl Clone for RichTextInputElement
Source§impl Debug for RichTextInputElement
impl Debug for RichTextInputElement
Source§impl<'de> Deserialize<'de> for RichTextInputElement
impl<'de> Deserialize<'de> for RichTextInputElement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<RichTextInputElement> for ActionsElement
impl From<RichTextInputElement> for ActionsElement
Source§fn from(value: RichTextInputElement) -> Self
fn from(value: RichTextInputElement) -> Self
Converts to this type from the input type.
Source§impl From<RichTextInputElement> for InputElement
impl From<RichTextInputElement> for InputElement
Source§fn from(value: RichTextInputElement) -> Self
fn from(value: RichTextInputElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RichTextInputElement
impl PartialEq for RichTextInputElement
Source§impl Serialize for RichTextInputElement
impl Serialize for RichTextInputElement
impl StructuralPartialEq for RichTextInputElement
Auto Trait Implementations§
impl Freeze for RichTextInputElement
impl RefUnwindSafe for RichTextInputElement
impl Send for RichTextInputElement
impl Sync for RichTextInputElement
impl Unpin for RichTextInputElement
impl UnsafeUnpin for RichTextInputElement
impl UnwindSafe for RichTextInputElement
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