UNPKG

blinx

Version:

The Scalable JavaScript Application Framework

26 lines (23 loc) 725 B
// An application which demonstrate usage of initOn (Dynamic way to initialize a module) // Configs: initOn // Usage: // initOn: { // eventName: 'INIT_PAGINATION', // eventPublisher: '#app-container #content-container' // } // In this example, // header will initialize content after 3 secs of render and // footer will be initialized by content after 3 secs of render. // Also, example of custom render call can be found in header and content. import Blinx from "../../lib"; import LayoutModule from "apps/layout"; Blinx.createInstance({ "moduleName": "layout", "instanceConfig": { "container": "#app-container", "placeholders": { "header": "Truss: initOn example" } }, "module": LayoutModule });