Add Json serialization for context parameters

This commit is contained in:
Manuel Cillero 2024-07-27 22:07:26 +02:00
parent 2c6e9238ab
commit b481d84cba
4 changed files with 50 additions and 41 deletions

View file

@ -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" {