| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/framework7/node_modules/framework7/modules/ |
Upload File : |
export default {
// Module Name
name: 'demo-module',
install(params) {
const Class = this;
console.log(Class, params);
},
create(instance) {
console.log('init', instance);
},
// App Params related to module
params: {
a: 1,
b: 2,
c: 3
},
// Extend Prototype
proto: {
demo() {
return 'demo-module-proto-method';
},
demoStatic: 'demo-module-proto-static'
},
// Extend Class, e.g. Class.myMethod
static: {
demo() {
return 'demo-module-class-method';
},
demoStatic: 'demo-module-class-static'
},
// Initialized instance Props & Methods
instance: {
demoProp: true,
demoMethod() {
return 'demo-method';
}
},
// Add Event Listeners
on: {
demoEvent(a, b) {
console.log('demo-event', a, b);
}
}
};