-
-
Notifications
You must be signed in to change notification settings - Fork 84
Make TextInput
wrap / TextArea
ideas
#44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We can write a new element |
Basic Todos / things to consider:
|
some more todos:
|
note i handled the 3rd bullet point by doing this .update_raw_el(|raw_el| {
raw_el.event_handler_with_options(
EventOptions::new().preventable(),
|event: dominator::events::KeyDown| {
if event.key() == "Enter" {
event.prevent_default();
... // handle enter
}
})
)
}) |
You can access the lower level event from Zoon's MoonZoon/crates/zoon/src/element/ability/keyboard_event_aware.rs Lines 30 to 33 in 5a1e6dc
It's demonstrated in the MoonZoon/examples/keyboard/frontend/src/main.rs Lines 21 to 31 in 5a1e6dc
|
TextInput
wrap (optionally?)TextInput
wrap / TextArea ideas
TextInput
wrap / TextArea ideasTextInput
wrap / TextArea
ideas
TextInput
should be able to wrap after exceeding it's width, additionally, i think it's resizability should also be built in, e.g. after it's height is exceeded, it will continue to get bigger until reaching a maximum height at which point a scroll bar would appear, exactly like this github text box (i'm not sure if this is a built in feature oftextarea
so just wanted to mention it explicitly)The text was updated successfully, but these errors were encountered: