👽️ Aplica cambio de uso de estilos y javascripts
This commit is contained in:
parent
ea782f820d
commit
bf356774f8
4 changed files with 15 additions and 20 deletions
|
|
@ -192,15 +192,15 @@ impl ComponentTrait for MegaMenu {
|
|||
}
|
||||
|
||||
fn prepare_component(&self, rcx: &mut RenderContext) -> PrepareMarkup {
|
||||
rcx.alter(ContextOp::AddStyleSheet(
|
||||
StyleSheet::located("/megamenu/css/menu.css").with_version("1.1.1"),
|
||||
))
|
||||
.alter(ContextOp::AddStyleSheet(
|
||||
StyleSheet::located("/megamenu/css/menu-clean.css").with_version("1.1.1"),
|
||||
))
|
||||
.alter(ContextOp::AddJavaScript(
|
||||
JavaScript::located("/megamenu/js/menu.min.js").with_version("1.1.1"),
|
||||
));
|
||||
rcx.alter(ContextOp::AddStyleSheet(StyleSheet::located(
|
||||
"/megamenu/css/menu.css?v=1.1.1",
|
||||
)))
|
||||
.alter(ContextOp::AddStyleSheet(StyleSheet::located(
|
||||
"/megamenu/css/menu-clean.css?v=1.1.1",
|
||||
)))
|
||||
.alter(ContextOp::AddJavaScript(JavaScript::located(
|
||||
"/megamenu/js/menu.min.js?v=1.1.1",
|
||||
)));
|
||||
pagetop_jquery::JQuery::add_jquery(rcx);
|
||||
|
||||
let id = rcx.required_id::<MegaMenu>(self.id());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue