pub struct CodeEditorPropsBuilder {Show 13 fields
pub id: Option<Option<FocusId>>,
pub value: Option<Option<CodeBinding>>,
pub set_value: Option<Option<WriteSignal<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<Option<CodeBinding>>§set_value: Option<Option<WriteSignal<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 opt_id(self, val: Option<FocusId>) -> Self
pub fn value(self, val: impl IntoPropOption<CodeBinding>) -> Self
pub fn opt_value(self, val: Option<CodeBinding>) -> Self
pub fn set_value(self, val: WriteSignal<String>) -> Self
pub fn opt_set_value(self, val: Option<WriteSignal<String>>) -> Self
pub fn placeholder(self, val: impl Into<String>) -> Self
pub fn language(self, val: impl IntoPropOption<String>) -> Self
pub fn opt_language(self, val: Option<String>) -> Self
pub fn theme(self, val: impl IntoPropOption<String>) -> Self
pub fn opt_theme(self, val: Option<String>) -> Self
pub fn show_line_numbers(self, val: impl Into<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 opt_title(self, val: Option<String>) -> Self
pub fn tab_size(self, val: impl Into<usize>) -> Self
pub fn autofocus(self, val: impl Into<bool>) -> Self
pub fn cursor_style(self, val: impl Into<CursorStyle>) -> Self
pub fn build(self) -> CodeEditorProps
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeEditorPropsBuilder
impl RefUnwindSafe for CodeEditorPropsBuilder
impl Send for CodeEditorPropsBuilder
impl Sync for CodeEditorPropsBuilder
impl Unpin for CodeEditorPropsBuilder
impl UnsafeUnpin for CodeEditorPropsBuilder
impl UnwindSafe 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