jfbilodeau / yew_form Goto Github PK
View Code? Open in Web Editor NEWComponents to simplify handling forms with Yew
License: Apache License 2.0
Components to simplify handling forms with Yew
License: Apache License 2.0
The live demo found at http://chronogears.com/yew-form/ does not work because the MIME type is set incorrectly (invalid server configuration):
this issue is fixed with PR #12
i was wondering if there would ever be hooks for this library to use with function components.
As one can see here:
yew_form/yew_form/src/checkbox.rs
Line 68 in 02f7b4c
The css classes are hard wired.
My proposal would be to make them configurable and in addition I would recommend to make the css classes for a validation error case also configurable.
Form::state_mut()
(see below) calls RC::get_mut_unchecked
which is unsafe and nightly only. Unfortunately, it is not documented why this is necessary (and why Rc::get_mut()
cannot be used instead). Changing this would allow us to remove the feature requirement. As a result, it would be possible to compile yew_form on stable Rust.
Lines 24 to 28 in afd25ef
There are merge conflicts in the yew_form/Cargo.toml
Thanks for your good work on this awesome crate.
yew >0.13 support web_sys, can you upgrade this crate?
Currently the Select
component doesn't reflect the field value on initial load. I think the view
of the Select
component needs to set the value
attribute of the select
element.
Hi!
I can't help but notice that this repository has been inactive (and broken) for a while. I'm working on lldap (https://github.com/lldap/lldap) and I'd like to keep using this repo, especially the associated crate. Would you consider transferring ownership of the crate/repo to me?
Cheers,
There are some instances of stuff like <<<<<<< HEAD
in the code.
Getting this panic on the current master code, my code is the same as in the examples folder, this happens as soon as oninput gets triggered for me.
panicked at 'called
Option::unwrap()on a
None value', /Users/dayat/.cargo/registry/src/github.com-1ecc6299db9ec823/yew_form-0.1.7/src/form.rs:24:39
versions:
yew = "0.17.4"
yew_form = "0.1.7"
yew_form_derive = "0.1.7"
Getting this panic on the current master code, my code is the same as in the examples folder, this happens as soon as oninput
gets triggered for me.
webpack:///./frontend/pkg/index_bg.js?:392 panicked at 'called `Option::unwrap()` on a `None` value', /Users/dignifiedquire/.cargo/git/checkouts/yew_form-0d273cf04f678139/f7c824c/yew_form/src/form.rs:24:9
Compilation attempt end up with:
Compiling yew_form_derive v0.1.7
error[E0432]: unresolved import `syn::export`
--> /home/marcin/.cargo/registry/src/github.com-1ecc6299db9ec823/yew_form_derive-0.1.7/src/lib.rs:6:10
|
6 | use syn::export::{ToTokens, TokenStream};
| ^^^^^^ could not find `export` in `syn`
error[E0599]: no method named `to_tokens` found for reference `&syn::Path` in the current scope
--> /home/marcin/.cargo/registry/src/github.com-1ecc6299db9ec823/yew_form_derive-0.1.7/src/lib.rs:32:22
|
32 | path.to_tokens(&mut tokens);
| ^^^^^^^^^ method not found in `&syn::Path`
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
6 | use crate::quote::ToTokens;
|
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0432, E0599.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `yew_form_derive`
For more information I recommend refering to this issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.