wip: bottom up dropping

This commit is contained in:
Jonathan Kelley committed 2021-08-05 22:23:41 -04:00
1 parent 687cda1b6d
commit f2334c17be
21 files changed
+682 -679

No files matched your search

+10 -1
View File
@@ -1,9 +1,13 @@
pub struct WebConfig {
pub(crate) hydrate: bool,
pub(crate) rootname: String,
}
impl Default for WebConfig {
fn default() -> Self {
Self { hydrate: false }
Self {
hydrate: false,
rootname: "dioxusroot".to_string(),
}
}
}
impl WebConfig {
@@ -18,4 +22,9 @@ impl WebConfig {
self.hydrate = f;
self
}
pub fn rootname(mut self, name: impl Into<String>) -> Self {
self.rootname = name.into();
self
}
}