pub struct CodeEditorPropsBuilder {Show 14 fields
pub id: Option<Option<FocusId>>,
pub value: Option<Bindable<String>>,
pub default_value: Option<Option<String>>,
pub on_value_change: Option<Option<Rc<dyn Fn(String)>>>,
pub placeholder: Option<String>,
pub language: Option<Option<String>>,
pub theme: Option<Option<String>>,
pub show_line_numbers: Option<bool>,
pub width: Option<Dimension>,
pub height: Option<Dimension>,
pub title: Option<Option<String>>,
pub tab_size: Option<usize>,
pub autofocus: Option<bool>,
pub cursor_style: Option<CursorStyle>,
}Fields§
§id: Option<Option<FocusId>>§value: Option<Bindable<String>>§default_value: Option<Option<String>>§on_value_change: Option<Option<Rc<dyn Fn(String)>>>§placeholder: Option<String>§language: Option<Option<String>>§theme: Option<Option<String>>§show_line_numbers: Option<bool>§width: Option<Dimension>§height: Option<Dimension>§title: Option<Option<String>>§tab_size: Option<usize>§autofocus: Option<bool>§cursor_style: Option<CursorStyle>Implementations§
Source§impl CodeEditorPropsBuilder
impl CodeEditorPropsBuilder
pub fn id(self, val: impl IntoPropOption<FocusId>) -> Self
pub fn value(self, val: impl IntoPropOption<String>) -> Self
pub fn bind_value(self, val: impl IntoPropOption<State<String>>) -> Self
pub fn default_value(self, val: impl IntoPropOption<String>) -> Self
pub fn on_value_change( self, val: impl IntoPropOption<Rc<dyn Fn(String)>>, ) -> Self
pub fn placeholder(self, val: impl Into<String>) -> Self
pub fn language(self, val: impl IntoPropOption<String>) -> Self
pub fn theme(self, val: impl IntoPropOption<String>) -> Self
pub fn show_line_numbers(self, val: bool) -> Self
pub fn width(self, val: impl IntoDimension) -> Self
pub fn height(self, val: impl IntoDimension) -> Self
pub fn title(self, val: impl IntoPropOption<String>) -> Self
pub fn tab_size(self, val: usize) -> Self
pub fn autofocus(self, val: bool) -> Self
pub fn cursor_style(self, val: impl Into<CursorStyle>) -> Self
pub fn build(self) -> CodeEditorProps
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CodeEditorPropsBuilder
impl !Send for CodeEditorPropsBuilder
impl !Sync for CodeEditorPropsBuilder
impl !UnwindSafe for CodeEditorPropsBuilder
impl Forget for CodeEditorPropsBuilder
impl Freeze for CodeEditorPropsBuilder
impl Unpin for CodeEditorPropsBuilder
impl UnsafeUnpin for CodeEditorPropsBuilder
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