Revert "fix: liveview interpreter using new templates"

This commit is contained in:
Jon Kelley authored and GitHub committed 2022-12-16 14:20:05 -08:00
1 parent 7ec55aa563
commit 5ac9b595ea
32 files changed
+1734 -627

No files matched your search

+1
View File
@@ -32,6 +32,7 @@ pub(crate) fn Button<'a>(cx: Scope<'a, ButtonProps>) -> Element<'a> {
callback.call(FormData {
value: text.to_string(),
values: HashMap::new(),
files: None,
});
}
state.set(new_state);
+1
View File
@@ -56,6 +56,7 @@ pub(crate) fn CheckBox<'a>(cx: Scope<'a, CheckBoxProps>) -> Element<'a> {
"on".to_string()
},
values: HashMap::new(),
files: None,
});
}
state.set(new_state);
+1
View File
@@ -84,6 +84,7 @@ pub(crate) fn NumbericInput<'a>(cx: Scope<'a, NumbericInputProps>) -> Element<'a
input_handler.call(FormData {
value: text,
values: HashMap::new(),
files: None,
});
}
};
+2 -1
View File
@@ -84,7 +84,7 @@ pub(crate) fn Password<'a>(cx: Scope<'a, PasswordProps>) -> Element<'a> {
};
render! {
div {
div{
width: "{width}",
height: "{height}",
border_style: "{border}",
@@ -99,6 +99,7 @@ pub(crate) fn Password<'a>(cx: Scope<'a, PasswordProps>) -> Element<'a> {
input_handler.call(FormData{
value: text.clone(),
values: HashMap::new(),
files: None
});
}
+1
View File
@@ -58,6 +58,7 @@ pub(crate) fn Slider<'a>(cx: Scope<'a, SliderProps>) -> Element<'a> {
oninput.call(FormData {
value,
values: HashMap::new(),
files: None,
});
}
};
+1
View File
@@ -95,6 +95,7 @@ pub(crate) fn TextBox<'a>(cx: Scope<'a, TextBoxProps>) -> Element<'a> {
input_handler.call(FormData{
value: text.clone(),
values: HashMap::new(),
files: None
});
}