✨ Add Json serialization for context parameters
This commit is contained in:
parent
2c6e9238ab
commit
b481d84cba
4 changed files with 50 additions and 41 deletions
|
|
@ -19,8 +19,8 @@ impl ComponentTrait for Menu {
|
|||
}
|
||||
|
||||
fn prepare_component(&self, cx: &mut Context) -> PrepareMarkup {
|
||||
cx.set_param::<bool>(PARAM_BASE_INCLUDE_MENU_ASSETS, true);
|
||||
cx.set_param::<bool>(PARAM_BASE_INCLUDE_ICONS, true);
|
||||
cx.set_param::<bool>(PARAM_BASE_INCLUDE_MENU_ASSETS, &true);
|
||||
cx.set_param::<bool>(PARAM_BASE_INCLUDE_ICONS, &true);
|
||||
|
||||
PrepareMarkup::With(html! {
|
||||
div id=[self.id()] class="menu__container" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue