1. remove value_types from FormData.
2. modify type of values to accept dynamic type.
This commit is contained in:
1 parent
9f0e000295
commit
c6b39c05b7
6 files changed
+26
-91
No files matched your search
@@ -61,9 +61,7 @@ impl EventData {
|
||||
pub struct FormData {
|
||||
pub value: String,
|
||||
|
||||
pub values: HashMap<String, Vec<String>>,
|
||||
|
||||
pub value_types: HashMap<String, String>,
|
||||
pub values: HashMap<String, ValueType>,
|
||||
|
||||
pub files: Option<Files>,
|
||||
}
|
||||
@@ -73,7 +71,6 @@ impl FormData {
|
||||
dioxus_html::FormData {
|
||||
value: self.value,
|
||||
values: self.values,
|
||||
value_types: self.value_types,
|
||||
files: None,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,6 @@ impl Button {
|
||||
let data = FormData {
|
||||
value: self.value.to_string(),
|
||||
values: HashMap::new(),
|
||||
value_types: HashMap::new(),
|
||||
files: None,
|
||||
};
|
||||
ctx.send(crate::Event {
|
||||
|
||||
@@ -198,7 +198,6 @@ impl Slider {
|
||||
let data = FormData {
|
||||
value: self.value.to_string(),
|
||||
values: HashMap::new(),
|
||||
value_types: HashMap::new(),
|
||||
files: None,
|
||||
};
|
||||
ctx.send(Event {
|
||||
|
||||
@@ -171,7 +171,6 @@ impl<C: TextLikeController> TextLike<C> {
|
||||
let data: FormData = FormData {
|
||||
value: self.text.clone(),
|
||||
values: HashMap::new(),
|
||||
value_types: HashMap::new(),
|
||||
files: None,
|
||||
};
|
||||
let ctx: UniqueView<WidgetContext> = world.borrow().expect("expected widget context");
|
||||
|
||||
Reference in new issue
Block a user