🎉 [megamenu] Nuevo componente para PageTop
This commit is contained in:
parent
8ec2c698c8
commit
b02c729864
19 changed files with 184 additions and 105 deletions
23
pagetop-megamenu/src/lib.rs
Normal file
23
pagetop-megamenu/src/lib.rs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
use pagetop::prelude::*;
|
||||
|
||||
pub mod component;
|
||||
|
||||
pub_handle!(MODULE_MEGAMENU);
|
||||
|
||||
include!(concat!(env!("OUT_DIR"), "/megamenu.rs"));
|
||||
|
||||
pub struct MegaMenu;
|
||||
|
||||
impl ModuleTrait for MegaMenu {
|
||||
fn handle(&self) -> Handle {
|
||||
MODULE_MEGAMENU
|
||||
}
|
||||
|
||||
fn dependencies(&self) -> Vec<ModuleStaticRef> {
|
||||
vec![&pagetop_jquery::JQuery]
|
||||
}
|
||||
|
||||
fn configure_service(&self, cfg: &mut server::web::ServiceConfig) {
|
||||
serve_static_files!(cfg, "/megamenu", bundle_megamenu);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue