Mono Layout Module
This ia a layout module for the Mono web framework.
Configuration
Besides the standard Mono module configuration options (html
, css
, scripts
), the extra configuration options for this module are:
{
"title": "Test Title",
"modules": {
"domElemId1": "miid1",
"domElemId2": ["miid2", "alternativeMiid", "errorMiid"]
},
"binds": [BIND_OBJECT]
}
where:
- title: the title that this layout module will give to the document
- modules: an object containing DOM element IDs as keys and the corresponding
miid
as values. If the value is an array, the layout will try to load the modules in order until one is successfull. This can be the case when the user is not yet logged in and instead of a module, a login or error module will be displayed. - binds: an array of bind objects as described by the Bind module
Events
The module emits the following events:
Event Name
|
Description
|
---|---|
ready | Emited when the layout is loaded. |
Change Log
v0.4.0
- transferred module to the new jxMono organization
- updated Bind to
v0.4.0
, Events tov0.4.0
v0.3.1
- Updated to Bind
v0.3.1
v0.3.0
- i18n for document title
- Updated deps
v0.2.5
- Removed compromised versions
v0.2.3
andv0.2.4
Events v0.1.11
andBind v0.2.2
- Deprecated
hide
,show
,reload
functions
v0.2.2
Events v0.1.8
andBind v0.2.1
v0.2.1
- Updated Events to
v0.1.7
v0.2.0
- Updated Bind to
v0.2.0
- Fixed broken
hasOwnProperty
test added inv0.1.11
(return
instead ofcontinue
)
v0.1.11
- added
if (!obj.hasOwnProperty(key)) return;
to object for loops
v0.1.10
- Updated Events to
v0.1.4
- Updated Bind to
v0.1.5
v0.1.9
- Updated Events to
v0.1.3
v0.1.8
- Updated Bind to
v0.1.3
v0.1.7
- Updated Bind to the
v0.1.2
version - Updated Events to the
v0.1.2
version
v0.1.6
- Fix major issue: if
config.modules
does not exist, emitready
.
v0.1.5
TODO
v0.1.4
TODO
v0.1.3
TODO
v0.1.2
TODO
v0.1.1
- Renamed main.js into layout.js