Struct freya_hooks::EditableConfig
source · pub struct EditableConfig { /* private fields */ }
Expand description
Create a configuration for a UseEditable
.
Implementations§
source§impl EditableConfig
impl EditableConfig
sourcepub fn new(content: String) -> Self
pub fn new(content: String) -> Self
Create a EditableConfig
.
sourcepub fn with_cursor(self, (row, col): (usize, usize)) -> Self
pub fn with_cursor(self, (row, col): (usize, usize)) -> Self
Specify a custom initial cursor positions.