This ia a layout module for the Mono web framework.
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
The module emits the following events:
Event Name
|
Description
|
---|---|
ready | Emited when the layout is loaded. |
- transferred module to the new jxMono organization
- updated Bind to
v0.4.0
, Events tov0.4.0
- Updated to Bind
v0.3.1
- i18n for document title
- Updated deps
- Removed compromised versions
v0.2.3
andv0.2.4
Events v0.1.11
andBind v0.2.2
- Deprecated
hide
,show
,reload
functions
Events v0.1.8
andBind v0.2.1
- Updated Events to
v0.1.7
- Updated Bind to
v0.2.0
- Fixed broken
hasOwnProperty
test added inv0.1.11
(return
instead ofcontinue
)
- added
if (!obj.hasOwnProperty(key)) return;
to object for loops
- Updated Events to
v0.1.4
- Updated Bind to
v0.1.5
- Updated Events to
v0.1.3
- Updated Bind to
v0.1.3
- Updated Bind to the
v0.1.2
version - Updated Events to the
v0.1.2
version
- Fix major issue: if
config.modules
does not exist, emitready
.
TODO
TODO
TODO
TODO
- Renamed main.js into layout.js